Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update docker-compose commands #116

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pekko-sample-cluster-docker-compose-java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2'
services:
seed:
container_name: pekko-sample-cluster-docker-compose-java_seed_1
Expand Down
4 changes: 2 additions & 2 deletions pekko-sample-cluster-docker-compose-java/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions pekko-sample-cluster-docker-compose-scala/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: '2'
services:
seed:
container_name: pekko-sample-cluster-docker-compose-scala_seed_1
Expand Down
4 changes: 2 additions & 2 deletions pekko-sample-cluster-docker-compose-scala/scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading