diff --git a/Dockerfile b/Dockerfile index 1dc36ef..4e6f23a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ ############################################################ -# Dockerfile - Janus Gateway on Debian Jessie +# Dockerfile - Janus Gateway on Debian Stretch # https://github.com/krull/docker-janus ############################################################ # set base image debian jessie -FROM debian:jessie +FROM debian:stretch # file maintainer author MAINTAINER brendan jocson @@ -23,7 +23,7 @@ ARG JANUS_WITH_WEBSOCKETS="1" ARG JANUS_WITH_MQTT="0" ARG JANUS_WITH_PFUNIX="1" ARG JANUS_WITH_RABBITMQ="0" -# https://goo.gl/dmbvc1 +# https://goo.gl/dmbvc1 ARG JANUS_WITH_FREESWITCH_PATCH="0" ARG JANUS_CONFIG_DEPS="\ --prefix=/opt/janus \ @@ -39,6 +39,7 @@ ARG JANUS_BUILD_DEPS_DEV="\ libglib2.0-dev \ libopus-dev \ libogg-dev \ + liblua5.3-dev \ pkg-config \ " ARG JANUS_BUILD_DEPS_EXT="\ @@ -82,9 +83,9 @@ RUN \ && DEBIAN_FRONTEND=noninteractive apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install $JANUS_BUILD_DEPS_DEV ${JANUS_BUILD_DEPS_EXT} \ # build libsrtp - && curl -fSL https://github.com/cisco/libsrtp/archive/v2.0.0.tar.gz -o ${BUILD_SRC}/v2.0.0.tar.gz \ - && tar xzf ${BUILD_SRC}/v2.0.0.tar.gz -C ${BUILD_SRC} \ - && cd ${BUILD_SRC}/libsrtp-2.0.0 \ + && curl -fSL https://github.com/cisco/libsrtp/archive/v2.1.0.tar.gz -o ${BUILD_SRC}/v2.1.0.tar.gz \ + && tar xzf ${BUILD_SRC}/v2.1.0.tar.gz -C ${BUILD_SRC} \ + && cd ${BUILD_SRC}/libsrtp-2.1.0 \ && ./configure --prefix=/usr --enable-openssl \ && make shared_library \ && make install \ diff --git a/README.md b/README.md index ef9fd64..22261a5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # docker-janus -`docker-janus` is a Debian 8 based docker image for [Meetecho's Janus Gateway](https://github.com/meetecho/janus-gateway) +`docker-janus` is a Debian 9 based docker image for [Meetecho's Janus Gateway](https://github.com/meetecho/janus-gateway) ## Description All the janus docker builds I have seen in hub.docker.com were all ubuntu based and/or of some redhat flavor. I successfully build janus in debian 7 and 8 before, so I thought it would be a good way to practice docker best practices and provide a debian based image at the same time. @@ -17,7 +17,7 @@ Many thanks for [meetecho](http://www.meetecho.com) for providing us [Janus Gate I have tried to build the image with docker best practices at hand. Should there be anything of note you notices, please do not hesitate to leave a comment! -## quickstart +## quickstart ``` root@mcroth:~/sandbox# git clone https://github.com/krull/docker-janus.git Cloning into 'docker-janus'... @@ -40,16 +40,16 @@ Creating janus-gateway root@mcroth:~/sandbox/docker-janus# docker-compose ps Name Command State Ports --------------------------------------------------------------------------------------------- -janus-gateway /opt/janus/bin/janus Up 0.0.0.0:8088->8088/tcp, 0.0.0.0:8188->8188/tcp +janus-gateway /opt/janus/bin/janus Up 0.0.0.0:8088->8088/tcp, 0.0.0.0:8188->8188/tcp root@mcroth:~/sandbox/docker-janus# docker images REPOSITORY TAG IMAGE ID CREATED SIZE mcroth/docker-janus latest 1dd697edcb76 23 minutes ago 232.9 MB -root@mcroth:~/sandbox/docker-janus# +root@mcroth:~/sandbox/docker-janus# ``` Visiting `http://localhost:8088/janus/info` in your browser should provide you with the build info of janus in JSON format. -A full set of default janus config files are in `./janus` folder, which is referenced as a volume in the `docker-compose.yml` file for docker-compose to use. +A full set of default janus config files are in `./janus` folder, which is referenced as a volume in the `docker-compose.yml` file for docker-compose to use. ## build criteria `janus-gateway` is built with the following configured options disabled, as I do not have the need for them to be enabled by default: