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
|
|
|
|
|
2022-01-11 13:49:36 +01:00
|
|
|
if ! lib/prerequisites.sh; then
|
2022-01-10 16:31:48 +01:00
|
|
|
log "Prerequisites failed, exiting"
|
2022-01-08 09:46:45 +01:00
|
|
|
exit
|
2022-01-04 15:26:34 +01:00
|
|
|
fi
|
2021-12-27 14:41:54 +01:00
|
|
|
source site.conf
|
|
|
|
|
2022-02-16 09:42:53 +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-01-11 13:49:36 +01:00
|
|
|
docker-compose -f ${project}/docker-compose.yml --env-file site-config/${project}.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"
|