From fd3254814075dc3fa32917aab2ac77e2a593da7f Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Mon, 5 Aug 2024 11:31:55 +0200 Subject: [PATCH] chore: migrate from docker-compose v1 to docker compose v2 --- README.md | 4 ++-- tests/tests.bats | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5232511..60f57d6 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ To run the application run the following command from the `opbeans` folder: ## Run locally To run locally, including Server, Kibana and Elasticsearch, use the provided docker compose file by running the command ```bash -docker-compose up +docker compose up ``` ## Run with Elastic Cloud @@ -23,7 +23,7 @@ docker-compose up 2. Add environmental variable `STACK_VERSION` to match your deployed Elasticsearch version. 3. Run ```bash -docker-compose -f docker-compose-elastic-cloud.yml up +docker compose -f docker-compose-elastic-cloud.yml up ``` ## Testing locally diff --git a/tests/tests.bats b/tests/tests.bats index f07e9d8..8cb636a 100644 --- a/tests/tests.bats +++ b/tests/tests.bats @@ -9,12 +9,12 @@ CONTAINER="opbeans-java" @test "build image" { cd $BATS_TEST_DIRNAME/.. - run docker-compose build + run docker compose build assert_success } @test "create test container" { - run docker-compose up -d + run docker compose up -d assert_success } @@ -32,6 +32,6 @@ CONTAINER="opbeans-java" } @test "clean test containers" { - run docker-compose down + run docker compose down assert_success }