forked from extern/docker
scripts: 'compose' and some minor fixes
This commit is contained in:
parent
7148ae733c
commit
55d35d20ca
@ -2,7 +2,7 @@ version: '3.6'
|
||||
|
||||
services:
|
||||
greenlight:
|
||||
container_name: greenlight-v2
|
||||
container_name: greenlight
|
||||
image: bigbluebutton/greenlight:v2
|
||||
env_file: .env
|
||||
environment:
|
||||
|
@ -11,8 +11,8 @@ services:
|
||||
SHARED_SECRET: ${SHARED_SECRET}
|
||||
WELCOME_FOOTER: ${WELCOME_FOOTER}
|
||||
STUN_SERVER: stun:${STUN_IP}:${STUN_PORT}
|
||||
TURN_SERVER: ${TURN_SERVER}
|
||||
TURN_SECRET: ${TURN_SECRET}
|
||||
TURN_SERVER: ${TURN_SERVER:-}
|
||||
TURN_SECRET: ${TURN_SECRET:-}
|
||||
volumes:
|
||||
- bigbluebutton:/var/bigbluebutton
|
||||
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)
|
||||
HTML5_IMAGE=$(docker-compose images -q html5)
|
||||
KURENTO_IMAGE=$(docker-compose images -q kurento)
|
||||
ETHERPAD_IMAGE=$(docker-compose images -q etherpad)
|
||||
MONGO_IMAGE=$(docker-compose images -q mongodb)
|
||||
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 "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 ""
|
||||
|
||||
|
@ -7,7 +7,7 @@ if [ -z $RESTARTED ]
|
||||
then
|
||||
|
||||
echo "# pull newest bigblugbutton-docker.git"
|
||||
#git pull
|
||||
git pull
|
||||
|
||||
# restart script, since it might have changed.
|
||||
RESTARTED=1 ./scripts/upgrade
|
||||
@ -20,13 +20,11 @@ else
|
||||
|
||||
echo ""
|
||||
echo "# pull newest images"
|
||||
docker-compose pull
|
||||
docker-compose -f docker-compose.greenlight.yml pull
|
||||
docker-compose -f docker-compose.https.yml pull
|
||||
./scripts/compose pull
|
||||
|
||||
echo ""
|
||||
echo "# rebuild images"
|
||||
docker-compose build --pull --no-cache
|
||||
./scripts/compose build --pull --no-cache
|
||||
|
||||
|
||||
COMMIT_HASH=$(git rev-parse --short HEAD)
|
||||
@ -37,12 +35,7 @@ else
|
||||
echo "images successfully rebuilt!"
|
||||
echo "we are on $COMMIT_HASH ($BRANCH_NAME)"
|
||||
echo ""
|
||||
echo "use following commands for restarting:"
|
||||
echo "BigBlueButton:"
|
||||
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 "use following command for restarting:"
|
||||
echo " $ ./scripts/compose up -d"
|
||||
echo "-------------------------------------"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user