You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by jp...@apache.org on 2024/06/20 11:41:35 UTC

(camel-spring-boot-examples) branch docker created (now e172301)

This is an automated email from the ASF dual-hosted git repository.

jpoth pushed a change to branch docker
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git


      at e172301  Docker Compose v2 - version is obsolete

This branch includes the following new commits:

     new 234a704  Migrate to Docker Compose v2
     new e172301  Docker Compose v2 - version is obsolete

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel-spring-boot-examples) 02/02: Docker Compose v2 - version is obsolete

Posted by jp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jpoth pushed a commit to branch docker
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git

commit e1723011f9b282fe4798a4715fef5e67396d64d3
Author: John Poth <po...@gmail.com>
AuthorDate: Thu Jun 20 13:40:02 2024 +0200

    Docker Compose v2 - version is obsolete
---
 .../dynamic-router-eip-stack/project-resources/docker/compose.yaml       | 1 -
 opentelemetry/containers/compose.yaml                                    | 1 -
 saga/local-resources/compose.yaml                                        | 1 -
 3 files changed, 3 deletions(-)

diff --git a/dynamic-router-eip/dynamic-router-eip-stack/project-resources/docker/compose.yaml b/dynamic-router-eip/dynamic-router-eip-stack/project-resources/docker/compose.yaml
index 66cc8c9..801cde7 100644
--- a/dynamic-router-eip/dynamic-router-eip-stack/project-resources/docker/compose.yaml
+++ b/dynamic-router-eip/dynamic-router-eip-stack/project-resources/docker/compose.yaml
@@ -14,7 +14,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
-version: "3.7"
 
 services:
   redpanda_broker:
diff --git a/opentelemetry/containers/compose.yaml b/opentelemetry/containers/compose.yaml
index 86482ab..27e6946 100644
--- a/opentelemetry/containers/compose.yaml
+++ b/opentelemetry/containers/compose.yaml
@@ -1,4 +1,3 @@
-version: '3.8'
 
 services:
 
diff --git a/saga/local-resources/compose.yaml b/saga/local-resources/compose.yaml
index 4fc3416..d20dfb5 100644
--- a/saga/local-resources/compose.yaml
+++ b/saga/local-resources/compose.yaml
@@ -1,4 +1,3 @@
-version: "3.9"
 services:
   lra-coordinator:
     image: "quay.io/jbosstm/lra-coordinator:latest"


(camel-spring-boot-examples) 01/02: Migrate to Docker Compose v2

Posted by jp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jpoth pushed a commit to branch docker
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot-examples.git

commit 234a7040cf2c1d4b62fb94221bbd2a9bad688e32
Author: John Poth <po...@gmail.com>
AuthorDate: Wed Jun 19 11:31:56 2024 +0200

    Migrate to Docker Compose v2
---
 dynamic-router-eip/README.adoc                                        | 4 ++--
 .../project-resources/docker/{docker-compose.yaml => compose.yaml}    | 0
 opentelemetry/README.adoc                                             | 4 ++--
 opentelemetry/containers/{docker-compose.yml => compose.yaml}         | 0
 saga/local-resources/{docker-compose.yml => compose.yaml}             | 0
 saga/readme.adoc                                                      | 2 +-
 saga/run-local.sh                                                     | 2 +-
 saga/stop-local.sh                                                    | 2 +-
 8 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dynamic-router-eip/README.adoc b/dynamic-router-eip/README.adoc
index c6e8161..55e2cd1 100644
--- a/dynamic-router-eip/README.adoc
+++ b/dynamic-router-eip/README.adoc
@@ -42,7 +42,7 @@ On a system with Podman, your output might resemble the following:
 [source,text]
 ----
 Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
->>>> Executing external compose provider "/usr/bin/docker-compose". Please refer to the documentation for details. <<<<
+>>>> Executing external compose provider "/usr/bin/docker compose". Please refer to the documentation for details. <<<<
 
 [+] Running 6/6
  ✔ Network docker_test-dynamic-router  Created  0.0s
@@ -59,7 +59,7 @@ When running the application stack for the Multimodule example, it should be the
 Docker or Podman installed.  For Podman, please confirm that you have `podman compose` installed to ensure
 that you can emulate the Docker CLI when using Podman.
 
-    docker compose -f dynamic-router-eip/dynamic-router-eip-stack/project-resources/docker/docker-compose.yaml up -d
+    docker compose -f dynamic-router-eip/dynamic-router-eip-stack/project-resources/docker/compose.yaml up -d
 
 ==== Access the Swagger UI
 
diff --git a/dynamic-router-eip/dynamic-router-eip-stack/project-resources/docker/docker-compose.yaml b/dynamic-router-eip/dynamic-router-eip-stack/project-resources/docker/compose.yaml
similarity index 100%
rename from dynamic-router-eip/dynamic-router-eip-stack/project-resources/docker/docker-compose.yaml
rename to dynamic-router-eip/dynamic-router-eip-stack/project-resources/docker/compose.yaml
diff --git a/opentelemetry/README.adoc b/opentelemetry/README.adoc
index 5a2ed1e..a35de49 100644
--- a/opentelemetry/README.adoc
+++ b/opentelemetry/README.adoc
@@ -26,7 +26,7 @@ You will need to compile this example first:
 mvn compile
 ----
 
-All the following docker-compose commands should be run from this directory.
+All the following docker compose commands should be run from this directory.
 
 === Run the example
 
@@ -51,7 +51,7 @@ We suggest using multiple terminal windows to start the following components:
 
 [source,sh]
 ----
-docker-compose -f containers/docker-compose.yml up
+docker compose -f containers/compose.yaml up
 ----
 
 ==== Startup demo apps
diff --git a/opentelemetry/containers/docker-compose.yml b/opentelemetry/containers/compose.yaml
similarity index 100%
rename from opentelemetry/containers/docker-compose.yml
rename to opentelemetry/containers/compose.yaml
diff --git a/saga/local-resources/docker-compose.yml b/saga/local-resources/compose.yaml
similarity index 100%
rename from saga/local-resources/docker-compose.yml
rename to saga/local-resources/compose.yaml
diff --git a/saga/readme.adoc b/saga/readme.adoc
index 3d5def0..221dc47 100644
--- a/saga/readme.adoc
+++ b/saga/readme.adoc
@@ -163,7 +163,7 @@ oc logs -f deploymentconfig/camel-example-spring-boot-saga-payment
 
 ==== Requirements
 
-- `docker-compose` installed (https://docs.docker.com/compose/install/[guide])
+- `docker compose` installed (https://docs.docker.com/compose/install/[guide])
 
 ==== Run script to execute services locally
 
diff --git a/saga/run-local.sh b/saga/run-local.sh
index 6a3e8fa..f019607 100755
--- a/saga/run-local.sh
+++ b/saga/run-local.sh
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 echo running amq broker and lra-coordinator
-docker-compose -f local-resources/docker-compose.yml up -d
+docker compose -f local-resources/compose.yaml up -d
 
 echo compiling project
 mvn clean package
diff --git a/saga/stop-local.sh b/saga/stop-local.sh
index 3940650..7769a77 100755
--- a/saga/stop-local.sh
+++ b/saga/stop-local.sh
@@ -13,4 +13,4 @@ echo stopping payment service
 kill -9 $(cat payment.pid) && rm payment.pid
 
 echo stopping amq broker and lra-coordinator
-docker-compose -f local-resources/docker-compose.yml stop
+docker compose -f local-resources/compose.yaml stop