Skip to content

Instantly share code, notes, and snippets.

@tobiasfriden
Last active March 11, 2021 15:29
Show Gist options
  • Save tobiasfriden/ebccbe35c94b2c8d507922e0edf7bbba to your computer and use it in GitHub Desktop.
Save tobiasfriden/ebccbe35c94b2c8d507922e0edf7bbba to your computer and use it in GitHub Desktop.
Janus/Debian buster Dockerfile
FROM debian:buster
LABEL maintainer="Tobias Fridén"
LABEL description="Provides an image with Janus Gateway on Debian buster"
RUN apt-get update -y \
&& apt-get upgrade -y
RUN apt-get install -y \
build-essential \
libmicrohttpd-dev \
libjansson-dev \
libnice-dev \
libssl-dev \
libsofia-sip-ua-dev \
libglib2.0-dev \
libopus-dev \
libogg-dev \
libini-config-dev \
libcollection-dev \
libconfig-dev \
pkg-config \
gengetopt \
libtool \
autotools-dev \
automake \
wget
RUN apt-get install -y \
sudo \
make \
git \
doxygen \
graphviz \
cmake
RUN cd ~ \
&& wget https://github.com/cisco/libsrtp/archive/v2.1.0.tar.gz \
&& tar xfv v2.1.0.tar.gz \
&& cd libsrtp-2.1.0 \
&& ./configure --prefix=/usr --enable-openssl \
&& make shared_library && sudo make install
RUN cd ~ \
&& git clone https://github.com/sctplab/usrsctp \
&& cd usrsctp \
&& ./bootstrap \
&& ./configure --prefix=/usr \
&& make \
&& sudo make install
RUN cd ~ \
&& git clone https://github.com/warmcat/libwebsockets.git \
&& cd libwebsockets \
&& git checkout v2.1.0 \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. \
&& make \
&& sudo make install
RUN cd ~ \
&& git clone https://github.com/meetecho/janus-gateway.git \
&& cd janus-gateway \
&& sh autogen.sh \
&& ./configure --prefix=/opt/janus --disable-rabbitmq --disable-mqtt \
&& make CFLAGS='-std=c99' \
&& make install \
&& make configs
RUN cp -rp ~/janus-gateway/certs /opt/janus/share/janus
RUN apt-get install nginx -y
COPY nginx/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80 7088 8088 8188 8089
EXPOSE 10000-10200/udp
CMD service nginx restart && /opt/janus/bin/janus -6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment