Skip to content

Instantly share code, notes, and snippets.

@vovapolu
Created May 28, 2019 13:27
Show Gist options
  • Save vovapolu/fcbb70d3c94d2618901449e518f43aaf to your computer and use it in GitHub Desktop.
Save vovapolu/fcbb70d3c94d2618901449e518f43aaf to your computer and use it in GitHub Desktop.
Dockerfile for Janus Streaming plugin
FROM debian:stretch
RUN apt-get update -y \
&& apt-get upgrade -y
RUN apt-get install -y libmicrohttpd-dev libjansson-dev \
libssl-dev libglib2.0-dev libcurl4-openssl-dev \
libconfig-dev pkg-config gengetopt libtool automake
RUN apt-get install -y \
sudo \
make \
git \
cmake \
wget \
gtk-doc-tools \
nginx
RUN git clone https://gitlab.freedesktop.org/libnice/libnice && \
cd libnice && ./autogen.sh && ./configure --prefix=/usr && make && make install
RUN wget https://github.com/cisco/libsrtp/archive/v2.2.0.tar.gz && \
tar xfv v2.2.0.tar.gz && cd libsrtp-2.2.0 && \
./configure --prefix=/usr --enable-openssl && \
make shared_library && make install
RUN git clone https://github.com/sctplab/usrsctp && cd usrsctp && \
./bootstrap && ./configure --prefix=/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 \
--enable-data-channels \
--disable-rabbitmq \
--disable-mqtt \
--disable-unix-sockets \
--disable-all-plugins \
--enable-plugin-streaming && \
make && make install && make configs && ldconfig
COPY conf/* /opt/janus/etc/janus/
COPY camera-streams/* /usr/local/etc/camera-streams/
COPY nginx.conf /etc/nginx/nginx.conf
CMD service nginx restart && /opt/janus/bin/janus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment