remove switching directories to run docker-compose
This commit is contained in:
parent
ce89382a32
commit
9f304d8fed
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
source lib/functions.sh
|
source lib/functions.sh
|
||||||
|
|
||||||
if ! ./prerequisites.sh; then
|
if ! lib/prerequisites.sh; then
|
||||||
log "Prerequisites failed, exiting"
|
log "Prerequisites failed, exiting"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
@ -11,10 +11,6 @@ source site.conf
|
||||||
|
|
||||||
log "Starting bridgehead"
|
log "Starting bridgehead"
|
||||||
|
|
||||||
cd ${project}
|
docker-compose -f ${project}/docker-compose.yml --env-file site-config/${project}.env up -d
|
||||||
|
|
||||||
docker-compose --env-file ../site-config/${project}.env up -d
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
log "The bridgehead should be in online in a few seconds"
|
log "The bridgehead should be in online in a few seconds"
|
||||||
|
|
|
@ -5,8 +5,5 @@ source site.conf
|
||||||
|
|
||||||
log "Stopping bridgehead"
|
log "Stopping bridgehead"
|
||||||
|
|
||||||
cd ${project}
|
docker-compose -f ${project}/docker-compose.yml --env-file site-config/${project}.env down
|
||||||
|
|
||||||
docker-compose --env-file ../site-config/${project}.env down
|
|
||||||
|
|
||||||
cd ..
|
|
||||||
|
|
Loading…
Reference in New Issue