mirror of
https://github.com/kestra-io/kestra.git
synced 2025-12-19 18:05:41 -05:00
chore: fix makefile to wait for pg before starting kestra
This commit is contained in:
5
Makefile
5
Makefile
@@ -144,7 +144,10 @@ export KESTRA_POSTGRES_CONFIGURATION
|
||||
# Build and deploy Kestra in standalone mode (using Postgres backend)
|
||||
--private-start-standalone-postgres:
|
||||
docker compose -f ./docker-compose-ci.yml up postgres -d;
|
||||
|
||||
echo "Waiting for postgres to be running"
|
||||
until [ "`docker inspect -f {{.State.Running}} kestra-postgres-1`"=="true" ]; do \
|
||||
sleep 1; \
|
||||
done; \
|
||||
rm -rf ${KESTRA_BASEDIR}/bin/confs/ && \
|
||||
mkdir -p ${KESTRA_BASEDIR}/bin/confs/ ${KESTRA_BASEDIR}/logs/ && \
|
||||
touch ${KESTRA_BASEDIR}/bin/confs/application.yml
|
||||
|
||||
Reference in New Issue
Block a user