browsertrix/scripts/run-swarm.sh
Ilya Kreymer 37ea3ed2af config/scripts:
- additional fixes to signing.yml config
- add missing 'set -o allexport' before 'source'
2022-06-16 22:36:44 -07:00

23 lines
537 B
Bash
Executable File

#!/bin/bash
# enable to build with local registry
# export REGISTRY=localhost:5000/
CURR=$(dirname "${BASH_SOURCE[0]}")
set -o allexport
source $CURR/../configs/config.env
docker swarm init
if [ -z "$WACZ_SIGN_URL" ]; then
echo "running w/o authsign"
docker stack deploy -c docker-compose.yml -c $CURR/../configs/docker-compose.swarm.yml btrix
else
echo "running with authsign"
docker stack deploy -c docker-compose.yml -c $CURR/../configs/docker-compose.swarm.yml -c $CURR/../configs/docker-compose.signing.yml btrix
fi