Skip to content

Commit

Permalink
Fix docker compose command
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Sep 9, 2024
1 parent 3838c55 commit 46f2d88
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ jobs:
# run: |
# cp src/test/resources/config/keystore.p12 src/main/docker/etc/config
# ./gradlew -Pprod buildDocker -x test -x javadocJar
# docker-compose -f src/main/docker/app.yml up -d
# docker compose -f src/main/docker/app.yml up -d
# yarn run e2e-prod
# docker-compose -f src/main/docker/app.yml down -v
# docker compose -f src/main/docker/app.yml down -v

# Temp fix
# https://github.com/docker/build-push-action/issues/252
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ jobs:
id: e2e
run: |
cp src/test/resources/config/keystore.p12 src/main/resources/config/keystore.p12
docker-compose -f src/main/docker/postgresql.yml up -d
docker compose -f src/main/docker/postgresql.yml up -d
./gradlew bootRun -Pprod -Pe2e-prod-test &>mp.log </dev/null &
yarn run e2e-prod
docker-compose -f src/main/docker/postgresql.yml down -v
docker compose -f src/main/docker/postgresql.yml down -v
./gradlew --stop
- name: Upload screenshots of failed e2e tests
Expand Down
4 changes: 2 additions & 2 deletions src/test/bash/run-prod-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ cp src/test/resources/config/keystore.p12 src/main/docker/etc/config
cp src/test/resources/config/keystore.p12 src/main/resources/config

./gradlew bootrun -Pe2e-prod-test -x test -x javadocJar &
docker-compose -f src/main/docker/postgresql.yml up -d # spin up production mode application
docker compose -f src/main/docker/postgresql.yml up -d # spin up production mode application
set +e

if ./gradlew generateOpenApiSpec && yarn run e2e-prod; then
Expand All @@ -18,5 +18,5 @@ else
EXIT_STATUS=1
fi

docker-compose -f src/main/docker/postgresql.yml down -v # clean up containers and volumes
docker compose -f src/main/docker/postgresql.yml down -v # clean up containers and volumes
exit $EXIT_STATUS

0 comments on commit 46f2d88

Please sign in to comment.