Move scripts used by travis jobs under travis folder because when mirroring all scripts folders are excluded

(cherry picked from commit 9a3588220b)
This commit is contained in:
cagache
2021-04-01 18:44:35 +03:00
committed by Cezar.Leahu
parent 7d3a85a449
commit 60602a57b9
19 changed files with 44 additions and 44 deletions

View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
export DOCKER_COMPOSE_PATH="${1}"
if [ -z "$DOCKER_COMPOSE_PATH" ] ; then
echo "Please provide path to docker-compose.yml: \"${0##*/} /path/to/docker-compose.yml\""
exit 1
fi
echo "Starting AGS stack in ${DOCKER_COMPOSE_PATH}"
# .env files are picked up from project directory correctly on docker-compose 1.23.0+
docker-compose --file "${DOCKER_COMPOSE_PATH}" --project-directory $(dirname "${DOCKER_COMPOSE_PATH}") up -d
if [ $? -eq 0 ] ; then
echo "Docker Compose started ok"
else
echo "Docker Compose failed to start" >&2
exit 1
fi