Skip to content
Snippets Groups Projects
Commit a0f41a45 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

check if jar exists

parent 09eea0ef
No related branches found
No related tags found
No related merge requests found
......@@ -3,4 +3,8 @@
./halt.sh
docker-compose -f ./docker-compose_build.yml build
docker-compose -f ./docker-compose_build.yml up -d
docker-compose stop db
\ No newline at end of file
until [ -e ./target/backend-services-DOCKER_BUILD.jar ]; do
echo 'Waiting...'
sleep 1
done
......@@ -9,7 +9,7 @@ until psql -h "db" -U "postgres" -c '\l'; do
sleep 1
done
if [$(psql -h "db" -U "postgres" -c "\dt" | grep schema_version | wc -l) == 0]; then
if [ $(psql -h "db" -U "postgres" -c "\dt" | grep schema_version | wc -l) == 0 ]; then
mvn flyway:baseline
fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment