This repository was archived by the owner on Dec 14, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +32
-16
lines changed Expand file tree Collapse file tree 5 files changed +32
-16
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: '3.6'
2
2
3
3
services :
4
4
greenlight :
5
- container_name : greenlight-v2
5
+ container_name : greenlight
6
6
image : bigbluebutton/greenlight:v2
7
7
env_file : .env
8
8
environment :
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ services:
11
11
SHARED_SECRET : ${SHARED_SECRET}
12
12
WELCOME_FOOTER : ${WELCOME_FOOTER}
13
13
STUN_SERVER : stun:${STUN_IP}:${STUN_PORT}
14
- TURN_SERVER : ${TURN_SERVER}
15
- TURN_SECRET : ${TURN_SECRET}
14
+ TURN_SERVER : ${TURN_SERVER:- }
15
+ TURN_SECRET : ${TURN_SECRET:- }
16
16
volumes :
17
17
- bigbluebutton:/var/bigbluebutton
18
18
networks :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ cd $( dirname $0 ) /..
5
+
6
+ # load .env
7
+ if [ -f .env ]
8
+ then
9
+ # exclude WELCOME_FOOTER because it may contain invalid characters
10
+ export $( cat .env | sed ' s/#.*//g' | grep -v " WELCOME_FOOTER" | xargs)
11
+ fi
12
+
13
+ # concatenate docker-compose file
14
+ COMPOSE_FILES=" -f docker-compose.yml"
15
+ if [ " $ENABLE_HTTPS_PROXY " == true ]; then
16
+ COMPOSE_FILES=" $COMPOSE_FILES -f docker-compose.https.yml"
17
+ fi
18
+ if [ " $ENABLE_GREENLIGHT " == true ]; then
19
+ COMPOSE_FILES=" $COMPOSE_FILES -f docker-compose.greenlight.yml"
20
+ fi
21
+
22
+ docker-compose $COMPOSE_FILES $@
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ CORE_IMAGE=$(docker-compose images -q core)
5
5
FREESWITCH_IMAGE=$( docker-compose images -q freeswitch)
6
6
HTML5_IMAGE=$( docker-compose images -q html5)
7
7
KURENTO_IMAGE=$( docker-compose images -q kurento)
8
+ ETHERPAD_IMAGE=$( docker-compose images -q etherpad)
8
9
MONGO_IMAGE=$( docker-compose images -q mongodb)
9
10
REDIS_IMAGE=$( docker-compose images -q redis)
10
11
@@ -30,7 +31,7 @@ docker run --rm --entrypoint /bin/sh $CORE_IMAGE -c "dpkg -l 'bbb-*' | grep ii |
30
31
echo " "
31
32
32
33
echo " etherpad"
33
- ETHERPAD_VERSION=$( docker-compose images etherpad | grep etherpad | awk ' {print $3 }' )
34
+ ETHERPAD_VERSION=$( docker run --rm --entrypoint cat $ETHERPAD_IMAGE /opt/ etherpad-lite/src/package.json | grep version | awk -F ' " ' ' {print $4 }' )
34
35
echo " version: $ETHERPAD_VERSION "
35
36
echo " "
36
37
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ if [ -z $RESTARTED ]
7
7
then
8
8
9
9
echo " # pull newest bigblugbutton-docker.git"
10
- # git pull
10
+ git pull
11
11
12
12
# restart script, since it might have changed.
13
13
RESTARTED=1 ./scripts/upgrade
20
20
21
21
echo " "
22
22
echo " # pull newest images"
23
- docker-compose pull
24
- docker-compose -f docker-compose.greenlight.yml pull
25
- docker-compose -f docker-compose.https.yml pull
23
+ ./scripts/compose pull
26
24
27
25
echo " "
28
26
echo " # rebuild images"
29
- docker- compose build --pull --no-cache
27
+ ./scripts/ compose build --pull --no-cache
30
28
31
29
32
30
COMMIT_HASH=$( git rev-parse --short HEAD)
37
35
echo " images successfully rebuilt!"
38
36
echo " we are on $COMMIT_HASH ($BRANCH_NAME )"
39
37
echo " "
40
- echo " use following commands for restarting:"
41
- echo " BigBlueButton:"
42
- echo " $ docker-compose up -d"
43
- echo " HTTPS Proxy:"
44
- echo " $ docker-compose -f docker-compose.https.yml up -d"
45
- echo " Greenlight:"
46
- echo " $ docker-compose -f docker-compose.greenlight.yml up -d"
38
+ echo " use following command for restarting:"
39
+ echo " $ ./scripts/compose up -d"
47
40
echo " -------------------------------------"
48
41
fi
You can’t perform that action at this time.
0 commit comments