Skip to content
Snippets Groups Projects
Commit 4fdd686c authored by Felipe Cecagno's avatar Felipe Cecagno
Browse files

update instructions and fix docker-compose to pull from docker hub

parent 69d0805d
No related branches found
No related tags found
No related merge requests found
## Build ## Build images individually
sbt is needed to build the Scala components sbt is needed to build the Scala components
``` ```
...@@ -92,13 +92,17 @@ $ cd bbb-lti/ ...@@ -92,13 +92,17 @@ $ cd bbb-lti/
$ docker build -t bbb-lti . $ docker build -t bbb-lti .
``` ```
## Build all
Build everything with a single command Build everything with a single command
``` ```
$ cd labs/docker/ $ cd labs/docker/
$ make release $ make release
``` ```
## RUN ## Run
### Setup
Export your configuration as environment variables Export your configuration as environment variables
``` ```
...@@ -108,6 +112,8 @@ $ export SHARED_SECRET=`openssl rand -hex 16` ...@@ -108,6 +112,8 @@ $ export SHARED_SECRET=`openssl rand -hex 16`
$ export COTURN_REST_SECRET=`openssl rand -hex 16` $ export COTURN_REST_SECRET=`openssl rand -hex 16`
$ export SCREENSHARE_EXTENSION_LINK=https://chrome.google.com/webstore/detail/mconf-screenshare/mbfngdphjegmlbfobcblikeefpidfncb $ export SCREENSHARE_EXTENSION_LINK=https://chrome.google.com/webstore/detail/mconf-screenshare/mbfngdphjegmlbfobcblikeefpidfncb
$ export SCREENSHARE_EXTENSION_KEY=mbfngdphjegmlbfobcblikeefpidfncb $ export SCREENSHARE_EXTENSION_KEY=mbfngdphjegmlbfobcblikeefpidfncb
$ export TAG_PREFIX=fcecagno/bigbluebutton:
$ export TAG_SUFFIX=
``` ```
Create a volume for the SSL certs Create a volume for the SSL certs
...@@ -145,13 +151,17 @@ $ docker stop nginx ...@@ -145,13 +151,17 @@ $ docker stop nginx
``` ```
### Launch with docker-compose
Launch everything with docker compose Launch everything with docker compose
``` ```
$ cd labs/docker/ $ cd labs/docker/
$ docker-compose up $ docker-compose up
``` ```
These are the instructions to run the containers individually ### Launch without docker-compose
These are the instructions to run the containers individually, in order
``` ```
$ docker run --rm --name mongo -d mongo:3.4 $ docker run --rm --name mongo -d mongo:3.4
......
version: '2' version: '2'
# export SERVER_DOMAIN=felipe.dev.mconf.com
# export EXTERNAL_IP=`dig +short $SERVER_DOMAIN`
# export SHARED_SECRET=`openssl rand -hex 16`
# export COTURN_REST_SECRET=`openssl rand -hex 16`
# export SCREENSHARE_EXTENSION_LINK=https://chrome.google.com/webstore/detail/mconf-screenshare/mbfngdphjegmlbfobcblikeefpidfncb
# export SCREENSHARE_EXTENSION_KEY=mbfngdphjegmlbfobcblikeefpidfncb
services: services:
mongo: mongo:
image: mongo:3.4 image: mongo:3.4
...@@ -17,7 +10,7 @@ services: ...@@ -17,7 +10,7 @@ services:
restart: unless-stopped restart: unless-stopped
bbb-html5: bbb-html5:
image: bbb-html5 image: ${TAG_PREFIX}bbb-html5${TAG_SUFFIX}
restart: unless-stopped restart: unless-stopped
links: links:
- mongo - mongo
...@@ -29,7 +22,7 @@ services: ...@@ -29,7 +22,7 @@ services:
ROOT_URL: http://127.0.0.1/html5client ROOT_URL: http://127.0.0.1/html5client
bbb-webhooks: bbb-webhooks:
image: bbb-webhooks image: ${TAG_PREFIX}bbb-webhooks${TAG_SUFFIX}
restart: unless-stopped restart: unless-stopped
links: links:
- redis - redis
...@@ -38,13 +31,13 @@ services: ...@@ -38,13 +31,13 @@ services:
SHARED_SECRET: ${SHARED_SECRET} SHARED_SECRET: ${SHARED_SECRET}
bbb-freeswitch: bbb-freeswitch:
image: bbb-freeswitch image: ${TAG_PREFIX}bbb-freeswitch${TAG_SUFFIX}
restart: unless-stopped restart: unless-stopped
links: links:
- coturn - coturn
bbb-webrtc-sfu: bbb-webrtc-sfu:
image: bbb-webrtc-sfu image: ${TAG_PREFIX}bbb-webrtc-sfu${TAG_SUFFIX}
restart: unless-stopped restart: unless-stopped
links: links:
- redis - redis
...@@ -55,7 +48,7 @@ services: ...@@ -55,7 +48,7 @@ services:
REDIS_HOST: redis REDIS_HOST: redis
coturn: coturn:
image: coturn image: ${TAG_PREFIX}coturn${TAG_SUFFIX}
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ssl-conf:/etc/nginx/ssl - ssl-conf:/etc/nginx/ssl
...@@ -75,14 +68,14 @@ services: ...@@ -75,14 +68,14 @@ services:
- 5349:5349/tcp - 5349:5349/tcp
kurento: kurento:
image: kurento image: ${TAG_PREFIX}kurento${TAG_SUFFIX}
restart: unless-stopped restart: unless-stopped
environment: environment:
KMS_STUN_IP: ${EXTERNAL_IP} KMS_STUN_IP: ${EXTERNAL_IP}
KMS_STUN_PORT: 3478 KMS_STUN_PORT: 3478
bbb-apps-akka: bbb-apps-akka:
image: bbb-apps-akka image: ${TAG_PREFIX}bbb-apps-akka${TAG_SUFFIX}
restart: unless-stopped restart: unless-stopped
links: links:
- redis - redis
...@@ -90,7 +83,7 @@ services: ...@@ -90,7 +83,7 @@ services:
JAVA_OPTS: -Dredis.host=redis JAVA_OPTS: -Dredis.host=redis
bbb-fsesl-akka: bbb-fsesl-akka:
image: bbb-fsesl-akka image: ${TAG_PREFIX}bbb-fsesl-akka${TAG_SUFFIX}
restart: unless-stopped restart: unless-stopped
links: links:
- bbb-freeswitch - bbb-freeswitch
...@@ -99,7 +92,7 @@ services: ...@@ -99,7 +92,7 @@ services:
JAVA_OPTS: -Dredis.host=redis -Dfreeswitch.esl.host=bbb-freeswitch JAVA_OPTS: -Dredis.host=redis -Dfreeswitch.esl.host=bbb-freeswitch
bbb-web: bbb-web:
image: bbb-web image: ${TAG_PREFIX}bbb-web${TAG_SUFFIX}
restart: unless-stopped restart: unless-stopped
links: links:
- redis - redis
...@@ -123,7 +116,7 @@ services: ...@@ -123,7 +116,7 @@ services:
# - db-greenlight:/usr/src/app/db/production # - db-greenlight:/usr/src/app/db/production
nginx: nginx:
image: nginx image: ${TAG_PREFIX}nginx${TAG_SUFFIX}
restart: unless-stopped restart: unless-stopped
links: links:
- bbb-webhooks - bbb-webhooks
......
...@@ -2,6 +2,6 @@ FROM tannerfe/alpine-openssl ...@@ -2,6 +2,6 @@ FROM tannerfe/alpine-openssl
WORKDIR /root WORKDIR /root
COPY entrypoint.sh /usr/local/bin/ COPY docker-entrypoint.sh /usr/local/bin/
CMD ["docker-entrypoint.sh"] CMD ["docker-entrypoint.sh"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment