@@ -16,16 +16,16 @@ printf "\n"
1616# Check that engine and mariadb are already running; containers must be started via ./start-dev-env.sh first
1717engine_running=$( docker compose ps -q --status running engine mariadb | wc -l)
1818if [[ " $engine_running " -lt 2 ]]; then
19- if [[ " ${GITHUB_ACTIONS} " == " true" ]]; then
20- docker compose up -d engine mariadb
21- echo -e " ${ORANGE} Bringing up the EB production container for migrations${NOCOLOR} "
22- else
23- echo -e " ${RED} ERROR: engine and/or mariadb are not running.${NOCOLOR} "
24- echo -e " ${ORANGE} Please start the environment first by running:${NOCOLOR} "
25- echo -e " ${GREEN} ./start-dev-env.sh${NOCOLOR} "
26- echo -e " Then re-run this script once the containers are up."
27- exit 1
28- fi
19+ if [[ " ${GITHUB_ACTIONS} " == " true" ]]; then
20+ docker compose up -d engine mariadb
21+ echo -e " ${ORANGE} Bringing up the EB production container for migrations${NOCOLOR} "
22+ else
23+ echo -e " ${RED} ERROR: engine and/or mariadb are not running.${NOCOLOR} "
24+ echo -e " ${ORANGE} Please start the environment first by running:${NOCOLOR} "
25+ echo -e " ${GREEN} ./start-dev-env.sh${NOCOLOR} "
26+ echo -e " Then re-run this script once the containers are up."
27+ exit 1
28+ fi
2929fi
3030echo -e " ${ORANGE} Using the currently running engine container for migrations${NOCOLOR} "
3131docker compose exec engine timeout 300 bash -c ' while [[ "$(curl -k -s -o /dev/null -w ' ' %{http_code}' ' localhost/internal/info)" != "200" ]]; do sleep 5; done' || false
7878echo -e " ${VINKJE} "
7979
8080if [[ " ${GITHUB_ACTIONS} " == " true" ]]; then
81- echo
82- echo -e " ${ORANGE} Bring up the core containers${NOCOLOR} ${VINKJE} "
83- echo
84- docker compose --profile oidc up -d --wait
85- echo
81+ echo
82+ echo -e " ${ORANGE} Bring up the core containers${NOCOLOR} ${VINKJE} "
83+ echo
84+ docker compose --profile oidc up -d --wait
85+ echo
8686fi
8787
8888echo -e " ${ORANGE} Adding the manage entities${NOCOLOR} ${VINKJE} "
0 commit comments