mirror of
https://github.com/bigbluebutton/docker.git
synced 2025-06-21 20:41:29 +02:00
scripts: 'compose' and some minor fixes
This commit is contained in:
parent
7148ae733c
commit
55d35d20ca
@ -2,7 +2,7 @@ version: '3.6'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
greenlight:
|
greenlight:
|
||||||
container_name: greenlight-v2
|
container_name: greenlight
|
||||||
image: bigbluebutton/greenlight:v2
|
image: bigbluebutton/greenlight:v2
|
||||||
env_file: .env
|
env_file: .env
|
||||||
environment:
|
environment:
|
||||||
|
@ -11,8 +11,8 @@ services:
|
|||||||
SHARED_SECRET: ${SHARED_SECRET}
|
SHARED_SECRET: ${SHARED_SECRET}
|
||||||
WELCOME_FOOTER: ${WELCOME_FOOTER}
|
WELCOME_FOOTER: ${WELCOME_FOOTER}
|
||||||
STUN_SERVER: stun:${STUN_IP}:${STUN_PORT}
|
STUN_SERVER: stun:${STUN_IP}:${STUN_PORT}
|
||||||
TURN_SERVER: ${TURN_SERVER}
|
TURN_SERVER: ${TURN_SERVER:-}
|
||||||
TURN_SECRET: ${TURN_SECRET}
|
TURN_SECRET: ${TURN_SECRET:-}
|
||||||
volumes:
|
volumes:
|
||||||
- bigbluebutton:/var/bigbluebutton
|
- bigbluebutton:/var/bigbluebutton
|
||||||
networks:
|
networks:
|
||||||
|
22
scripts/compose
Executable file
22
scripts/compose
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd $(dirname $0)/..
|
||||||
|
|
||||||
|
# load .env
|
||||||
|
if [ -f .env ]
|
||||||
|
then
|
||||||
|
# exclude WELCOME_FOOTER because it may contain invalid characters
|
||||||
|
export $(cat .env | sed 's/#.*//g' | grep -v "WELCOME_FOOTER" | xargs)
|
||||||
|
fi
|
||||||
|
|
||||||
|
# concatenate docker-compose file
|
||||||
|
COMPOSE_FILES="-f docker-compose.yml"
|
||||||
|
if [ "$ENABLE_HTTPS_PROXY" == true ]; then
|
||||||
|
COMPOSE_FILES="$COMPOSE_FILES -f docker-compose.https.yml"
|
||||||
|
fi
|
||||||
|
if [ "$ENABLE_GREENLIGHT" == true ]; then
|
||||||
|
COMPOSE_FILES="$COMPOSE_FILES -f docker-compose.greenlight.yml"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker-compose $COMPOSE_FILES $@
|
@ -5,6 +5,7 @@ CORE_IMAGE=$(docker-compose images -q core)
|
|||||||
FREESWITCH_IMAGE=$(docker-compose images -q freeswitch)
|
FREESWITCH_IMAGE=$(docker-compose images -q freeswitch)
|
||||||
HTML5_IMAGE=$(docker-compose images -q html5)
|
HTML5_IMAGE=$(docker-compose images -q html5)
|
||||||
KURENTO_IMAGE=$(docker-compose images -q kurento)
|
KURENTO_IMAGE=$(docker-compose images -q kurento)
|
||||||
|
ETHERPAD_IMAGE=$(docker-compose images -q etherpad)
|
||||||
MONGO_IMAGE=$(docker-compose images -q mongodb)
|
MONGO_IMAGE=$(docker-compose images -q mongodb)
|
||||||
REDIS_IMAGE=$(docker-compose images -q redis)
|
REDIS_IMAGE=$(docker-compose images -q redis)
|
||||||
|
|
||||||
@ -30,7 +31,7 @@ docker run --rm --entrypoint /bin/sh $CORE_IMAGE -c "dpkg -l 'bbb-*' | grep ii |
|
|||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
echo "etherpad"
|
echo "etherpad"
|
||||||
ETHERPAD_VERSION=$(docker-compose images etherpad | grep etherpad | awk '{print $3}')
|
ETHERPAD_VERSION=$(docker run --rm --entrypoint cat $ETHERPAD_IMAGE /opt/etherpad-lite/src/package.json | grep version | awk -F'"' '{print $4}')
|
||||||
echo " version: $ETHERPAD_VERSION"
|
echo " version: $ETHERPAD_VERSION"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ if [ -z $RESTARTED ]
|
|||||||
then
|
then
|
||||||
|
|
||||||
echo "# pull newest bigblugbutton-docker.git"
|
echo "# pull newest bigblugbutton-docker.git"
|
||||||
#git pull
|
git pull
|
||||||
|
|
||||||
# restart script, since it might have changed.
|
# restart script, since it might have changed.
|
||||||
RESTARTED=1 ./scripts/upgrade
|
RESTARTED=1 ./scripts/upgrade
|
||||||
@ -20,13 +20,11 @@ else
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "# pull newest images"
|
echo "# pull newest images"
|
||||||
docker-compose pull
|
./scripts/compose pull
|
||||||
docker-compose -f docker-compose.greenlight.yml pull
|
|
||||||
docker-compose -f docker-compose.https.yml pull
|
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "# rebuild images"
|
echo "# rebuild images"
|
||||||
docker-compose build --pull --no-cache
|
./scripts/compose build --pull --no-cache
|
||||||
|
|
||||||
|
|
||||||
COMMIT_HASH=$(git rev-parse --short HEAD)
|
COMMIT_HASH=$(git rev-parse --short HEAD)
|
||||||
@ -37,12 +35,7 @@ else
|
|||||||
echo "images successfully rebuilt!"
|
echo "images successfully rebuilt!"
|
||||||
echo "we are on $COMMIT_HASH ($BRANCH_NAME)"
|
echo "we are on $COMMIT_HASH ($BRANCH_NAME)"
|
||||||
echo ""
|
echo ""
|
||||||
echo "use following commands for restarting:"
|
echo "use following command for restarting:"
|
||||||
echo "BigBlueButton:"
|
echo " $ ./scripts/compose up -d"
|
||||||
echo " $ docker-compose up -d"
|
|
||||||
echo "HTTPS Proxy:"
|
|
||||||
echo " $ docker-compose -f docker-compose.https.yml up -d"
|
|
||||||
echo "Greenlight:"
|
|
||||||
echo " $ docker-compose -f docker-compose.greenlight.yml up -d"
|
|
||||||
echo "-------------------------------------"
|
echo "-------------------------------------"
|
||||||
fi
|
fi
|
Loading…
x
Reference in New Issue
Block a user