From fda3f390d2138a2faaa9643ac266aaeca6081c1c Mon Sep 17 00:00:00 2001 From: Juiced66 Date: Tue, 20 Aug 2024 15:20:53 +0200 Subject: [PATCH] fix: update docker compose commands --- .github/actions/functional-test/action.yml | 2 +- package.json | 2 +- tests/wait-kuzzle.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/functional-test/action.yml b/.github/actions/functional-test/action.yml index 6a9df8c..02c6987 100644 --- a/.github/actions/functional-test/action.yml +++ b/.github/actions/functional-test/action.yml @@ -7,6 +7,6 @@ runs: shell: bash run: | npm run docker npm ci - docker-compose up -d + docker compose up -d bash tests/wait-kuzzle.sh npm run test \ No newline at end of file diff --git a/package.json b/package.json index 91d87ab..88f7952 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { - "docker": "docker-compose run kuzzle_node_1 ", + "docker": "docker compose run kuzzle_node_1 ", "dev": "NODE_ENV=development ergol tests/application/app.ts -c ergol.config.json", "prod": "node ./dist/tests/application/app.js", "test": "jest --runInBand", diff --git a/tests/wait-kuzzle.sh b/tests/wait-kuzzle.sh index 10db5ef..7836f2f 100644 --- a/tests/wait-kuzzle.sh +++ b/tests/wait-kuzzle.sh @@ -14,7 +14,7 @@ do ((tries=tries+1)) if [ $tries -eq $max_tries ]; then - docker-compose logs + docker compose logs curl http://localhost:7512?pretty echo "Cannot connect to Kuzzle after $tries tries. Aborting." exit 1