Skip to content

Commit c8c2058

Browse files
committedNov 20, 2023
Using docker compose instead of docker-compose in scripts
1 parent 71bc861 commit c8c2058

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed
 

‎.ci/scripts/run-monkey-tests.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ npm install --unsafe-perm
1515

1616
if [ "$REBUILD" == "true" ];
1717
then
18-
docker-compose -f ./.ci/test-cluster.yml run kuzzle_node_1 npm rebuild
18+
docker compose -f ./.ci/test-cluster.yml run kuzzle_node_1 npm rebuild
1919
fi
2020

2121
npm run build-ts
2222

2323
echo "[$(date)] - Starting Kuzzle Cluster..."
2424

25-
trap 'docker-compose -f ./.ci/test-cluster.yml logs' err
25+
trap 'docker compose -f ./.ci/test-cluster.yml logs' err
2626

27-
docker-compose -f ./.ci/test-cluster.yml up -d
27+
docker compose -f ./.ci/test-cluster.yml up -d
2828

2929
# don't wait on 7512: nginx will accept connections far before Kuzzle does
3030
KUZZLE_PORT=17510 ./bin/wait-kuzzle

‎.ci/scripts/run-test-cluster.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ npm install
1616

1717
if [ "$REBUILD" == "true" ];
1818
then
19-
docker-compose -f ./.ci/test-cluster.yml run kuzzle_node_1 npm rebuild
19+
docker compose -f ./.ci/test-cluster.yml run kuzzle_node_1 npm rebuild
2020
fi
2121

2222
npm run build-ts
2323

2424
echo "[$(date)] - Starting Kuzzle Cluster..."
2525

26-
trap 'docker-compose -f ./.ci/test-cluster.yml logs' err
26+
trap 'docker compose -f ./.ci/test-cluster.yml logs' err
2727

28-
docker-compose -f ./.ci/test-cluster.yml up -d
28+
docker compose -f ./.ci/test-cluster.yml up -d
2929

3030
# don't wait on 7512: nginx will accept connections far before Kuzzle does
3131
KUZZLE_PORT=17510 ./bin/wait-kuzzle

‎.github/actions/build-and-run-kuzzle/action.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ runs:
1717
shell: bash
1818
- run: |
1919
export KUZZLE_IMAGE=${{ inputs.KUZZLE_IMAGE }}
20-
docker-compose -f ./.ci/services.yml up -d
20+
docker compose -f ./.ci/services.yml up -d
2121
shell: bash
2222
- run: |
23-
trap 'docker-compose -f ./.ci/services.yml logs' err
23+
trap 'docker compose -f ./.ci/services.yml logs' err
2424
2525
export MAX_TRIES=60
2626
./bin/wait-kuzzle
2727
2828
trap - err
2929
shell: bash
30-
- run: docker-compose -f ./.ci/services.yml down
30+
- run: docker compose -f ./.ci/services.yml down
3131
shell: bash

‎CONTRIBUTING.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ We use most of the [NPM Coding Style](https://www.w3resource.com/npm/npm-coding-
2525

2626
## Tools
2727

28-
For development only, we built a specific docker-compose file: `docker-compose.yml`. You can use it to profile, debug, test a variable on the fly, add breakpoints and so on, thanks to [chrome-devtools](https://developer.chrome.com/devtools).
28+
For development only, we built a specific docker- ompose file: `docker-compose.yml`. You can use it to profile, debug, test a variable on the fly, add breakpoints and so on, thanks to [chrome-devtools](https://developer.chrome.com/devtools).
2929
Check the logs at the start of Kuzzle using the development docker image to get the appropriate debug URL.
3030

3131
How to run the development stack (needs Docker 1.10+ and Docker Compose 1.8+):
@@ -36,7 +36,7 @@ git clone git@github.com:kuzzleio/kuzzle.git
3636
cd kuzzle
3737

3838
# Start a kuzzle cluster with development tools enabled
39-
docker-compose up
39+
docker compose up
4040
```
4141

4242
### ENOSPC error
@@ -98,7 +98,7 @@ See our [plugins documentation](https://docs.kuzzle.io/core/2/plugins/)
9898
### Using docker, with Kuzzle running in Docker
9999

100100
```bash
101-
$ docker-compose up -d
101+
$ docker compose up -d
102102

103103
# Wait for Kuzzle stack to be up, and start the entire test suite (long)
104104
$ npm run test

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,5 +142,5 @@ Run the following command to install all the dependencies in your container:
142142
npm run docker:install
143143
```
144144

145-
finally run the command `docker-compose up` to launch your kuzzle stack.
145+
finally run the command `docker compose up` to launch your kuzzle stack.
146146

‎doc/2/guides/getting-started/deploy-your-application/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ $ ssh <user>@<server-ip>
150150
151151
[...]
152152
153-
$ docker-compose -f deployment/docker-compose.yml up -d
153+
$ docker compose -f deployment/docker-compose.yml up -d
154154
```
155155

156156
Your Kuzzle application is now up and running on port 7512!

‎vagrant/kuzzle.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010

1111
echo "launching kuzzle"
1212
cd /vagrant
13-
docker-compose -p kuzzle up -d
13+
docker compose -p kuzzle up -d

0 commit comments

Comments
 (0)
Please sign in to comment.