mirror of
https://github.com/bigbluebutton/docker.git
synced 2025-03-31 19:16:18 +02:00
use dockerize templates for bbb-html5
This commit is contained in:
parent
656a9b8812
commit
c21da11d4e
@ -74,8 +74,8 @@ services:
|
|||||||
kurento:
|
kurento:
|
||||||
image: kurento/kurento-media-server:6.13
|
image: kurento/kurento-media-server:6.13
|
||||||
environment:
|
environment:
|
||||||
KMS_STUN_IP: 64.233.177.127 # google stun server
|
KMS_STUN_IP: ${STUN_IP}
|
||||||
KMS_STUN_PORT: 19302
|
KMS_STUN_PORT: ${STUN_PORT}
|
||||||
KMS_MIN_PORT: 24577
|
KMS_MIN_PORT: 24577
|
||||||
KMS_MAX_PORT: 32768
|
KMS_MAX_PORT: 32768
|
||||||
KMS_EXTERNAL_ADDRESS:
|
KMS_EXTERNAL_ADDRESS:
|
||||||
@ -93,10 +93,10 @@ services:
|
|||||||
KURENTO_NAME: kurento
|
KURENTO_NAME: kurento
|
||||||
REDIS_HOST: redis
|
REDIS_HOST: redis
|
||||||
FREESWITCH_IP: host.docker.internal
|
FREESWITCH_IP: host.docker.internal
|
||||||
FREESWITCH_SIP_IP: 144.76.97.34
|
FREESWITCH_SIP_IP: ${EXTERNAL_IP}
|
||||||
ESL_IP: host.docker.internal
|
ESL_IP: host.docker.internal
|
||||||
LOG_LEVEL: debug
|
LOG_LEVEL: debug
|
||||||
NODE_CONFIG: '{"kurento":[{"ip":"144.76.97.34","url":"ws://kurento:8888/kurento"}]}'
|
NODE_CONFIG: '{"kurento":[{"ip":"${EXTERNAL_IP}","url":"ws://kurento:8888/kurento"}]}'
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:3008:3008"
|
- "127.0.0.1:3008:3008"
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
@ -110,11 +110,17 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- etherpad
|
- etherpad
|
||||||
|
environment:
|
||||||
|
DOMAIN: ${DOMAIN}
|
||||||
|
CLIENT_TITLE: ${CLIENT_TITLE}
|
||||||
|
SCREENSHARE_EXTENSION_KEY: ${SCREENSHARE_EXTENSION_KEY}
|
||||||
|
SCREENSHARE_EXTENSION_LINK: ${SCREENSHARE_EXTENSION_LINK}
|
||||||
|
ETHERPAD_API_KEY: ${ETHERPAD_API_KEY}
|
||||||
networks:
|
networks:
|
||||||
- bluenet
|
- bluenet
|
||||||
volumes:
|
volumes:
|
||||||
- ./mod/html5/entrypoint.sh:/entrypoint.sh
|
- ./mod/html5/entrypoint.sh:/entrypoint.sh
|
||||||
- ./mod/html5/settings.yml:/app/programs/server/assets/app/config/settings.yml
|
- ./mod/html5/settings.yml:/app/programs/server/assets/app/config/settings.yml.tmpl
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
bluenet:
|
bluenet:
|
||||||
|
@ -43,12 +43,12 @@ expire {
|
|||||||
}
|
}
|
||||||
|
|
||||||
services {
|
services {
|
||||||
bbbWebAPI="https://meet.livingutopia.org/bigbluebutton/api"
|
bbbWebAPI="https://{{ .Env.DOMAIN }}/bigbluebutton/api"
|
||||||
sharedSecret="I8x5c5yzaXZktgXK00tEqSi3B17nQySH5ssDWzxwL4"
|
sharedSecret="{{ .Env.SHARED_SECRET }}"
|
||||||
}
|
}
|
||||||
|
|
||||||
red5 {
|
red5 {
|
||||||
deskshareip="meet.livingutopia.org"
|
deskshareip="{{ .Env.DOMAIN }}"
|
||||||
deskshareapp="video-broadcast"
|
deskshareapp="video-broadcast"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,17 +2,25 @@
|
|||||||
FROM node:8-stretch
|
FROM node:8-stretch
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
ENV DOCKERIZE_VERSION v0.6.1
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y sudo wget binutils
|
# install dockerize
|
||||||
|
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
||||||
|
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
||||||
|
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y wget binutils
|
||||||
RUN useradd -m meteor
|
RUN useradd -m meteor
|
||||||
|
|
||||||
RUN wget https://ubuntu.bigbluebutton.org/xenial-220/pool/main/b/bbb-html5/bbb-html5_2.2.0-870_amd64.deb \
|
# download & install bbb-html5 package manually
|
||||||
|
RUN PACKAGE_PATH=$(curl -s https://ubuntu.bigbluebutton.org/xenial-220/dists/bigbluebutton-xenial/main/binary-amd64/Packages | grep -E 'Filename.*html5' | awk '{print $2}') \
|
||||||
|
&& wget https://ubuntu.bigbluebutton.org/xenial-220/$PACKAGE_PATH \
|
||||||
&& ar x bbb-html5_*.deb \
|
&& ar x bbb-html5_*.deb \
|
||||||
&& tar -zxf data.tar.gz ./usr/share/meteor/bundle \
|
&& tar -zxf data.tar.gz ./usr/share/meteor/bundle \
|
||||||
&& mv /usr/share/meteor/bundle /app \
|
&& mv /usr/share/meteor/bundle /app \
|
||||||
&& rm -rf /app/programs/server/node_modules \
|
&& rm -rf /app/programs/server/node_modules \
|
||||||
&& chown meteor:meteor /app/programs/server \
|
&& chown meteor:meteor /app/programs/server \
|
||||||
|
&& chown -R meteor:meteor /app/programs/server/assets/app/config \
|
||||||
&& rm /*.deb /*.tar.gz
|
&& rm /*.deb /*.tar.gz
|
||||||
|
|
||||||
USER meteor
|
USER meteor
|
||||||
|
@ -7,4 +7,7 @@ export NODE_ENV=production
|
|||||||
export ENVIRONMENT_TYPE=production
|
export ENVIRONMENT_TYPE=production
|
||||||
export PORT=3000
|
export PORT=3000
|
||||||
|
|
||||||
node main.js
|
rm /app/programs/server/assets/app/config/settings.yml
|
||||||
|
dockerize \
|
||||||
|
-template /app/programs/server/assets/app/config/settings.yml.tmpl:/app/programs/server/assets/app/config/settings.yml \
|
||||||
|
node main.js
|
||||||
|
@ -7,7 +7,7 @@ public:
|
|||||||
listenOnlyMode: true
|
listenOnlyMode: true
|
||||||
forceListenOnly: false
|
forceListenOnly: false
|
||||||
skipCheck: false
|
skipCheck: false
|
||||||
clientTitle: BigBlueButton
|
clientTitle: {{ .Env.CLIENT_TITLE }}
|
||||||
appName: BigBlueButton HTML5 Client
|
appName: BigBlueButton HTML5 Client
|
||||||
bbbServerVersion: 2.2-dev
|
bbbServerVersion: 2.2-dev
|
||||||
copyright: "©2019 BigBlueButton Inc."
|
copyright: "©2019 BigBlueButton Inc."
|
||||||
@ -85,9 +85,9 @@ public:
|
|||||||
enableNetworkMonitoring: false
|
enableNetworkMonitoring: false
|
||||||
packetLostThreshold: 10
|
packetLostThreshold: 10
|
||||||
kurento:
|
kurento:
|
||||||
wsUrl: wss://meet.livingutopia.org/bbb-webrtc-sfu
|
wsUrl: wss://{{ .Env.DOMAIN }}/bbb-webrtc-sfu
|
||||||
chromeDefaultExtensionKey: akgoaoikmbmhcopjgakkcepdgdgkjfbc
|
chromeDefaultExtensionKey: {{ .Env.SCREENSHARE_EXTENSION_KEY }}
|
||||||
chromeDefaultExtensionLink: https://chrome.google.com/webstore/detail/bigbluebutton-screenshare/akgoaoikmbmhcopjgakkcepdgdgkjfbc
|
chromeDefaultExtensionLink: {{ .Env.SCREENSHARE_EXTENSION_LINK }}
|
||||||
chromeExtensionKey: KEY
|
chromeExtensionKey: KEY
|
||||||
chromeExtensionLink: LINK
|
chromeExtensionLink: LINK
|
||||||
chromeScreenshareSources:
|
chromeScreenshareSources:
|
||||||
@ -158,7 +158,7 @@ public:
|
|||||||
enabled: true
|
enabled: true
|
||||||
note:
|
note:
|
||||||
enabled: true
|
enabled: true
|
||||||
url: https://meet.livingutopia.org/pad
|
url: https://{{ .Env.DOMAIN }}/pad
|
||||||
config:
|
config:
|
||||||
showLineNumbers: false
|
showLineNumbers: false
|
||||||
showChat: false
|
showChat: false
|
||||||
@ -313,7 +313,7 @@ private:
|
|||||||
pencilChunkLength: 100
|
pencilChunkLength: 100
|
||||||
loadSlidesFromHttpAlways: false
|
loadSlidesFromHttpAlways: false
|
||||||
etherpad:
|
etherpad:
|
||||||
apikey: 9xLdxQJ8XoTUy3q7W4ZgpvKYqX16yqirdESk9i54FVm6PiJ1paRd8JOI1MT4pywm
|
apikey: {{ .Env.ETHERPAD_API_KEY }}
|
||||||
version: 1.2.13
|
version: 1.2.13
|
||||||
host: etherpad
|
host: etherpad
|
||||||
port: 9001
|
port: 9001
|
||||||
|
Loading…
Reference in New Issue
Block a user