Skip to content

Commit

Permalink
change from docker compose v1 to v2
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Hahn <jakob.hahn@hetzner.com>
  • Loading branch information
Jakob3xD committed Apr 3, 2024
1 parent 3539093 commit 2c4b859
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Adds GlobalIOUsage struct for nodes stats ([#506]((https://github.com/opensearch-project/opensearch-go/pull/506))

### Changed
- Use docker compose v2 instead of v1 ([#506]((https://github.com/opensearch-project/opensearch-go/pull/506))

### Deprecated

Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,13 @@ godoc: ## Display documentation for the package
godoc --http=localhost:6060 --play

cluster.build:
docker-compose --project-directory .ci/opensearch build;
docker compose --project-directory .ci/opensearch build;

cluster.start:
docker-compose --project-directory .ci/opensearch up -d ;
docker compose --project-directory .ci/opensearch up -d ;

cluster.stop:
docker-compose --project-directory .ci/opensearch down ;
docker compose --project-directory .ci/opensearch down ;


cluster.clean: ## Remove unused Docker volumes and networks
Expand Down
4 changes: 2 additions & 2 deletions guides/index_lifecycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ To start the cluster, run the following command:

```bash
cd /path/to/docker-compose.yml
docker-compose up -d
docker compose up -d
```

Let's create a client instance to access this cluster:
Expand Down Expand Up @@ -258,5 +258,5 @@ Notice that we are passing `ignore unavailable` to the request. This tells the s
All resources created in this guide are automatically deleted when the cluster is stopped. You can stop the cluster by running the following command:

```bash
docker-compose down -v
docker compose down -v
```

0 comments on commit 2c4b859

Please sign in to comment.