Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #1

Merged
merged 1 commit into from
Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Expand All @@ -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 \
Expand All @@ -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="\
Expand Down Expand Up @@ -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 \
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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'...
Expand All @@ -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:
Expand Down