Skip to content

Commit

Permalink
Update docker compose command to V2 (#879)
Browse files Browse the repository at this point in the history
Update docker compose command to V2 in accordance of deprecation of docker-compose V1 on GitHub Actions runner's ubuntu image.
  • Loading branch information
kokodak authored Aug 4, 2024
1 parent 83a6369 commit 3e6d0b2
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- run: npm run lint
- run: npm run build
- run: npm run build:examples
- run: docker-compose -f docker/docker-compose-ci.yml up --build -d
- run: docker compose -f docker/docker-compose-ci.yml up --build -d
- run: npm run test:ci

- name: Upload coverage to Codecov
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $ npm run build:proto
Start MongoDB, Yorkie in a terminal session.

```bash
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

Start the test in another terminal session.
Expand All @@ -79,7 +79,7 @@ To get the latest server locally, run the command below then restart containers

```bash
$ docker pull yorkieteam/yorkie:latest
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

To print specific console logs, delete the line `return false` in the `onConsoleLog()` function within [`vitest.config.ts`](https://github.com/yorkie-team/yorkie-js-sdk/blob/main/vitest.config.ts#L16).
Expand Down Expand Up @@ -116,7 +116,7 @@ $ npm run test {test file path} # e.g. npm run test integration/tree_test.ts
Start MongoDB and Yorkie in a terminal session.

```bash
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

Start the webpack-dev-server in another terminal session.
Expand Down
2 changes: 1 addition & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ All examples need to run the Yorkie server. So you should run the server before

```bash
# In the root directory of the repository.
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

The examples have own local dependencies. So you should install dependencies before running examples.
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-scheduler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
At project root, run below command to start Yorkie server.

```bash
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

Then install dependencies and run the demo.
Expand Down
2 changes: 1 addition & 1 deletion examples/profile-stack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
At project root, run below command to start Yorkie.

```bash
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion examples/react-tldraw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
At project root, run below command to start Yorkie server.

```bash
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

Then install dependencies and run the demo.
Expand Down
2 changes: 1 addition & 1 deletion examples/react-todomvc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
At project root, run below command to start Yorkie server.

```bash
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

Then install dependencies and run the demo.
Expand Down
2 changes: 1 addition & 1 deletion examples/simultaneous-cursors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $ npm install
At project root, run below command to start Yorkie server.

```bash
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

Update the `.env` file like so:
Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-codemirror6/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
At project root, run below command to start Yorkie.

```bash
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion examples/vanilla-quill/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $ npm install
At project root, run below command to start Yorkie.

```bash
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

Update the `.env` file like so:
Expand Down
2 changes: 1 addition & 1 deletion examples/vuejs-kanban/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
At project root, run below command to start Yorkie server.

```bash
$ docker-compose -f docker/docker-compose.yml up --build -d
$ docker compose -f docker/docker-compose.yml up --build -d
```

Install dependencies
Expand Down

0 comments on commit 3e6d0b2

Please sign in to comment.