mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-11-22 16:13:20 +01:00
47 lines
1.1 KiB
Bash
Executable File
47 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
cd $(dirname $0)/..
|
|
|
|
if [ -z $RESTARTED ]
|
|
then
|
|
|
|
echo "# pull newest bigblugbutton-docker.git"
|
|
git pull
|
|
|
|
# restart script, since it might have changed.
|
|
RESTARTED=1 ./scripts/upgrade
|
|
|
|
else
|
|
echo ""
|
|
echo "# pull newest bbb-webrtc-sfu"
|
|
git submodule update --remote
|
|
|
|
|
|
echo ""
|
|
echo "# pull newest images"
|
|
./scripts/compose pull
|
|
|
|
echo ""
|
|
echo "# rebuild images"
|
|
|
|
# rebuild core without caching, since the deb-packages might have changed
|
|
./scripts/compose build --pull --no-cache core
|
|
|
|
# rebuild everything else only when modified
|
|
./scripts/compose build --pull
|
|
|
|
sed -i 's/EXTERNAL_IP=/EXTERNAL_IPv4=/' .env
|
|
|
|
COMMIT_HASH=$(git rev-parse --short HEAD)
|
|
BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)
|
|
|
|
echo ""
|
|
echo "-------------------------------------"
|
|
echo "images successfully rebuilt!"
|
|
echo "we are on $COMMIT_HASH ($BRANCH_NAME)"
|
|
echo ""
|
|
echo "use following command for restarting:"
|
|
echo " $ ./scripts/compose up -d"
|
|
echo "-------------------------------------"
|
|
fi |