bridgehead/start-bridgehead.sh

19 lines
429 B
Bash
Raw Normal View History

2021-12-27 14:41:54 +01:00
#!/bin/bash
### Note: Currently not complete, needs some features before useable for production
2022-01-10 16:31:48 +01:00
source lib/functions.sh
if ! lib/prerequisites.sh; then
2022-01-10 16:31:48 +01:00
log "Prerequisites failed, exiting"
exit
fi
2021-12-27 14:41:54 +01:00
./lib/generate.sh
2022-01-10 16:31:48 +01:00
log "Starting bridgehead"
2021-12-27 14:41:54 +01:00
2022-03-01 17:24:53 +01:00
# TODO: Check $1 for proper values
docker-compose -f $1/docker-compose.yml --env-file bridgehead-config/$1.env up -d
2021-12-27 14:41:54 +01:00
2022-01-10 16:31:48 +01:00
log "The bridgehead should be in online in a few seconds"