From 48b0cb0ad1623e08959bfbc77d9997f13235af4f Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 7 Aug 2024 18:11:01 +0100 Subject: [PATCH] update docker-compose commands --- pekko-sample-cluster-docker-compose-java/README.md | 4 ++-- pekko-sample-cluster-docker-compose-java/docker-compose.yml | 1 - pekko-sample-cluster-docker-compose-java/scripts/test.sh | 4 ++-- pekko-sample-cluster-docker-compose-scala/README.md | 4 ++-- pekko-sample-cluster-docker-compose-scala/docker-compose.yml | 1 - pekko-sample-cluster-docker-compose-scala/scripts/test.sh | 4 ++-- 6 files changed, 8 insertions(+), 10 deletions(-) diff --git a/pekko-sample-cluster-docker-compose-java/README.md b/pekko-sample-cluster-docker-compose-java/README.md index e0395fc0..d767ca6a 100644 --- a/pekko-sample-cluster-docker-compose-java/README.md +++ b/pekko-sample-cluster-docker-compose-java/README.md @@ -8,6 +8,6 @@ This sample is based on [akka-sample-cluster-docker-compose-java](https://github In SBT, just run `docker:publishLocal` to create a local docker container. -To run the cluster, run `docker-compose up`. This will create 3 nodes, a seed and two regular members, called `seed`, `c1`, and `c2` respectively. +To run the cluster, run `docker compose up`. This will create 3 nodes, a seed and two regular members, called `seed`, `c1`, and `c2` respectively. -While running, try opening a new terminal and (from the same directory) try things like `docker-compose down seed` and watch the cluster nodes respond. +While running, try opening a new terminal and (from the same directory) try things like `docker compose down seed` and watch the cluster nodes respond. diff --git a/pekko-sample-cluster-docker-compose-java/docker-compose.yml b/pekko-sample-cluster-docker-compose-java/docker-compose.yml index af509bb8..74d66b56 100644 --- a/pekko-sample-cluster-docker-compose-java/docker-compose.yml +++ b/pekko-sample-cluster-docker-compose-java/docker-compose.yml @@ -1,4 +1,3 @@ -version: '2' services: seed: container_name: pekko-sample-cluster-docker-compose-java_seed_1 diff --git a/pekko-sample-cluster-docker-compose-java/scripts/test.sh b/pekko-sample-cluster-docker-compose-java/scripts/test.sh index 1b0f772b..9738086e 100755 --- a/pekko-sample-cluster-docker-compose-java/scripts/test.sh +++ b/pekko-sample-cluster-docker-compose-java/scripts/test.sh @@ -4,12 +4,12 @@ set -x clean_up () { echo "cleaning up test docker containers" - docker-compose down + docker compose down } sbt docker:publishLocal -docker-compose up -d +docker compose up -d docker logs pekko-sample-cluster-docker-compose-java_seed_1 diff --git a/pekko-sample-cluster-docker-compose-scala/README.md b/pekko-sample-cluster-docker-compose-scala/README.md index d5bbd714..7e3c8752 100644 --- a/pekko-sample-cluster-docker-compose-scala/README.md +++ b/pekko-sample-cluster-docker-compose-scala/README.md @@ -8,6 +8,6 @@ This sample is based on [akka-sample-cluster-docker-compose-scala](https://githu In SBT, just run `docker:publishLocal` to create a local docker container. -To run the cluster, run `docker-compose up`. This will create 3 nodes, a seed and two regular members, called `seed`, `c1`, and `c2` respectively. +To run the cluster, run `docker compose up`. This will create 3 nodes, a seed and two regular members, called `seed`, `c1`, and `c2` respectively. -While running, try opening a new terminal and (from the same directory) try things like `docker-compose stop seed` and watch the cluster nodes respond. +While running, try opening a new terminal and (from the same directory) try things like `docker compose stop seed` and watch the cluster nodes respond. diff --git a/pekko-sample-cluster-docker-compose-scala/docker-compose.yml b/pekko-sample-cluster-docker-compose-scala/docker-compose.yml index 296d2e6c..ebcde581 100644 --- a/pekko-sample-cluster-docker-compose-scala/docker-compose.yml +++ b/pekko-sample-cluster-docker-compose-scala/docker-compose.yml @@ -1,4 +1,3 @@ -version: '2' services: seed: container_name: pekko-sample-cluster-docker-compose-scala_seed_1 diff --git a/pekko-sample-cluster-docker-compose-scala/scripts/test.sh b/pekko-sample-cluster-docker-compose-scala/scripts/test.sh index 6eed677c..0ce1dde4 100755 --- a/pekko-sample-cluster-docker-compose-scala/scripts/test.sh +++ b/pekko-sample-cluster-docker-compose-scala/scripts/test.sh @@ -4,12 +4,12 @@ set -x clean_up () { echo "cleaning up test docker containers" - docker-compose down + docker compose down } sbt docker:publishLocal -docker-compose up -d +docker compose up -d docker logs pekko-sample-cluster-docker-compose-scala_seed_1