-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
76 lines (63 loc) · 1.73 KB
/
Dockerfile
File metadata and controls
76 lines (63 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# Copyright (c) 2026 Samuraieng
# SPDX-License-Identifier: GPL-3.0-or-later
FROM ubuntu:24.04
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive TZ=Asia/Tokyo apt-get install -y tzdata && \
apt-get upgrade -y
RUN apt-get install -y \
autoconf \
ca-certificates \
curl \
build-essential \
git \
gpg \
iproute2 \
iputils-ping \
libedit-dev \
libjansson-dev \
libncurses5-dev \
libnewt-dev \
libsqlite3-dev \
libssl-dev \
libtool \
libxml2-dev \
net-tools \
sudo \
vim \
wget
RUN set +e; \
groupadd -g 1000 ubuntu; \
useradd -m -u 1000 -g ubuntu -s /bin/bash ubuntu; \
mkdir /home/ubuntu; \
set -e
RUN echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
RUN echo "ubuntu:ubuntu|chpasswd"
RUN mkdir /home/ubuntu/sandbox
WORKDIR /home/ubuntu/sandbox
RUN git clone -b 16.3 https://github.com/asterisk/asterisk.git && \
cd asterisk && \
./configure --with-jansson-bundled && \
make && \
make install && \
cd ..
RUN wget http://download-mirror.savannah.gnu.org/releases/linphone/plugins/sources/bcg729-1.0.2.tar.gz && \
tar zxvf bcg729-1.0.2.tar.gz && \
cd bcg729-1.0.2 && \
./configure && \
make && \
make install && \
ldconfig && \
cd ..
RUN wget http://asterisk.hosting.lv/src/asterisk-g72x-1.4.3.tar.bz2 && \
bunzip2 -c asterisk-g72x-1.4.3.tar.bz2 | tar xvf - && \
cd asterisk-g72x-1.4.3 && \
./autogen.sh && \
./configure --with-bcg729 --with-asterisk-includes=../asterisk/include && \
make && \
make install && \
cd ..
COPY etc-asterisk.tar.gz /tmp/etc-asterisk.tar.gz
RUN tar xzf /tmp/etc-asterisk.tar.gz -C /
RUN cd asterisk && \
make config
CMD ["asterisk","-f"]