bridgehead/stop-bridgehead.sh

19 lines
419 B
Bash
Raw Normal View History

2022-01-10 16:31:48 +01:00
#!/bin/bash -e
2021-12-27 14:41:54 +01:00
2022-01-10 16:31:48 +01:00
source lib/functions.sh
2021-12-27 14:41:54 +01:00
2022-05-03 09:16:19 +02:00
if [ $# -eq 0 ]; then
echo "Please provide a Project as argument"
exit 1
fi
if [ $1 != "ccp" ] && [$1 != "nngm"] && [ $1 != "gbn" ]; then
echo "Please provide a supported project like ccp, gbn or nngm"
exit 1
fi
2022-01-10 16:31:48 +01:00
log "Stopping bridgehead"
2022-03-01 17:24:53 +01:00
# TODO: Check $1 for proper values
2022-05-03 09:16:19 +02:00
docker-compose -f $1/docker-compose.yml --env-file /etc/bridgehead-config/$1.env down