From 0b9864f81a7e03c36d9181e5d68ade3fc67ad871 Mon Sep 17 00:00:00 2001 From: Ivan Senic Date: Mon, 13 Mar 2023 15:56:04 +0100 Subject: [PATCH 1/2] update docker compose readme --- docker-compose/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose/README.md b/docker-compose/README.md index 2f4c3afeae..bddeda08c2 100644 --- a/docker-compose/README.md +++ b/docker-compose/README.md @@ -12,7 +12,7 @@ This directory provides two ways to start the JSON API and Stargate coordinator You can start a simple Stargate configuration with the following command: ``` -docker compose up -d +docker-compose up -d ``` This brings up the configuration described in the `docker-compose.yml` file. The configuration includes health criteria for each container that is used to ensure the containers come up in the correct order. @@ -30,13 +30,13 @@ Whether you use the shell script or start `docker compose` directly, you can rem This alternate configuration runs the Stargate coordinator node in developer mode, so that no separate Cassandra cluster is required. This can be run with the command: ``` -docker compose -f docker-compose-dev-mode.yml up -d +docker-compose -f docker-compose-dev-mode.yml up -d ``` To stop the configuration, use the command: ``` -docker compose -f docker-compose-dev-mode.yml down +docker-compose -f docker-compose-dev-mode.yml down ``` This configuration is useful for development and testing since it initializes more quickly, but is not recommended for production deployments. This configuration also has a convenience script: `start_dse_68_dev_mode.sh`. From 836b27fb0fc12870a7ed80fdbe70fa97a36f73ae Mon Sep 17 00:00:00 2001 From: Ivan Senic Date: Mon, 13 Mar 2023 16:01:29 +0100 Subject: [PATCH 2/2] add platform docs --- README.md | 2 ++ docker-compose/README.md | 3 +++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 7e3ac32c5c..ace2989c82 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,8 @@ You can create a Docker image named `io.stargate/jsonapi` using: ./mvnw clean package -Dquarkus.container-image.build=true ``` +> NOTE: Include the property `-Dquarkus.docker.buildx.platform=linux/amd64,linux/arm64` if you want to build for multiple platforms. + Or, if you want to create a native-runnable Docker image named `io.stargate/jsonapi-native` using: ```shell script ./mvnw clean package -Pnative -Dquarkus.native.container-build=true diff --git a/docker-compose/README.md b/docker-compose/README.md index bddeda08c2..8a3bef1758 100644 --- a/docker-compose/README.md +++ b/docker-compose/README.md @@ -5,9 +5,12 @@ This directory provides two ways to start the JSON API and Stargate coordinator ## Stargate JSON API with 3-node DSE 6.8 cluster > **PREREQUISITES:** Please build the latest JSONAPI docker image first by running: +> > ```bash > ./mvnw clean package -Dquarkus.container-image.build=true -DskipTests > ``` +> +> You can control the platform using the `-Dquarkus.docker.buildx.platform=linux/amd64,linux/arm64` property. You can start a simple Stargate configuration with the following command: