2022-05-08 20:40:34 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
|
|
# load .env
|
2023-12-06 13:18:58 +01:00
|
|
|
. functions.sh
|
|
|
|
load_env
|
2022-05-08 20:40:34 +02:00
|
|
|
|
|
|
|
if [ -z "$ENABLE_WEBHOOKS" ]; then
|
|
|
|
echo "ERROR: ENABLE_WEBHOOKS must be set to true, otherwise the image would not be built"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$ENABLE_RECORDING" ]; then
|
|
|
|
echo "ERROR: ENABLE_RECORDING must be set to true, otherwise the image would not be built"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# generate compose file
|
|
|
|
./scripts/generate-compose
|
|
|
|
|
|
|
|
# ensure submodules are matching tags.env
|
|
|
|
./scripts/checkout-submodules
|
|
|
|
|
|
|
|
# build and push java base image
|
|
|
|
docker build -t alangecker/bbb-docker-base-java:latest mod/base-java
|
|
|
|
|
|
|
|
# buld and push other images
|
2023-05-07 11:07:09 +02:00
|
|
|
docker compose build
|
2022-05-08 20:40:34 +02:00
|
|
|
|
|
|
|
# push images
|
|
|
|
docker push alangecker/bbb-docker-base-java:latest
|
2023-05-07 11:07:09 +02:00
|
|
|
docker compose push \
|
2022-05-08 20:40:34 +02:00
|
|
|
html5-backend-1 \
|
|
|
|
bbb-web \
|
|
|
|
freeswitch \
|
|
|
|
apps-akka \
|
|
|
|
bbb-pads \
|
|
|
|
etherpad \
|
|
|
|
fsesl-akka \
|
|
|
|
jodconverter \
|
|
|
|
nginx \
|
|
|
|
periodic \
|
|
|
|
recordings \
|
|
|
|
webhooks \
|
|
|
|
webrtc-sfu
|