This repository has been archived by the owner on May 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Dockerfile
50 lines (43 loc) · 1.83 KB
/
Dockerfile
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
FROM ubuntu:16.04
RUN apt-get update -y \
&& apt-get upgrade -y \
&& apt-get install -y apt-utils bash wget libmicrohttpd-dev \
libjansson-dev libnice-dev libssl-dev libsofia-sip-ua-dev \
libglib2.0-dev libopus-dev libogg-dev libcurl4-openssl-dev \
pkg-config gengetopt libtool automake git cmake
RUN cd ~ && \
wget https://github.com/cisco/libsrtp/archive/v2.0.0.tar.gz && \
tar xfv v2.0.0.tar.gz && \
cd libsrtp-2.0.0 && \
./configure --prefix=/usr --enable-openssl && \
make shared_library && make install && \
cd ~ && rm -rf libsrtp-2.0.0
RUN git clone https://github.com/sctplab/usrsctp && \
cd usrsctp && \
./bootstrap && \
./configure --prefix=/usr && make && make install && \
cd ~ && rm -rf usrsctp
RUN git clone https://github.com/warmcat/libwebsockets.git && \
cd libwebsockets && \
git checkout v2.4-stable && \
mkdir build && \
cd build && \
cmake -DLWS_MAX_SMP=1 -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_C_FLAGS="-fpic" .. && \
make && make install && \
cd ~ && rm -rf libwebsockets
RUN git clone https://github.com/meetecho/janus-gateway.git && \
cd janus-gateway && \
sh autogen.sh && \
./configure --prefix=/opt/janus --disable-rabbitmq --disable-mqtt --disable-plugin-sip && \
make && \
make install && make configs && \
rm /opt/janus/etc/janus/*.cfg.sample && \
mkdir -p /opt/janus/certs && \
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:1024 -keyout /opt/janus/certs/privateKey.key -out /opt/janus/certs/certificate.crt -subj '/C=US/ST=California/L=Palo Alto/O=Mattermost/OU=WebRTC/CN=dockerhost' && \
cd ~ && rm -rf janus-gateway
COPY vagrant/janus/config/*.cfg /opt/janus/etc/janus/
EXPOSE 7088
EXPOSE 7089
EXPOSE 8188
EXPOSE 8189
CMD /opt/janus/bin/janus