You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/08/26 13:29:02 UTC

[camel-spring-boot-examples] branch main updated: Update LRA Coordinator image (#80)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 6a0dcad  Update LRA Coordinator image (#80)
6a0dcad is described below

commit 6a0dcadfcc022c49606ce116ab1b47a1b2adabd4
Author: Marco Carletti <mc...@redhat.com>
AuthorDate: Fri Aug 26 15:28:57 2022 +0200

    Update LRA Coordinator image (#80)
---
 saga/local-resources/docker-compose.yml           | 2 +-
 saga/ocp-resources/lra-coordinator-ephemeral.yaml | 8 +++++++-
 saga/ocp-resources/lra-coordinator.yaml           | 4 ++--
 saga/readme.adoc                                  | 6 ++++++
 4 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/saga/local-resources/docker-compose.yml b/saga/local-resources/docker-compose.yml
index c5842e6..86e7316 100644
--- a/saga/local-resources/docker-compose.yml
+++ b/saga/local-resources/docker-compose.yml
@@ -1,7 +1,7 @@
 version: "3.9"
 services:
   lra-coordinator:
-    image: "docker.io/jbosstm/lra-coordinator:latest"
+    image: "quay.io/jbosstm/lra-coordinator:latest"
     network_mode: "host"
   amq-broker:
     image: "registry.redhat.io/amq7/amq-broker-rhel8:7.10"
diff --git a/saga/ocp-resources/lra-coordinator-ephemeral.yaml b/saga/ocp-resources/lra-coordinator-ephemeral.yaml
index 195edd0..c6b670b 100644
--- a/saga/ocp-resources/lra-coordinator-ephemeral.yaml
+++ b/saga/ocp-resources/lra-coordinator-ephemeral.yaml
@@ -31,7 +31,7 @@ items:
     tags:
     - from:
         kind: DockerImage
-        name: docker.io/jbosstm/lra-coordinator:latest
+        name: quay.io/jbosstm/lra-coordinator:latest
       generation: 0
       importPolicy: {}
       name: "latest"
@@ -80,6 +80,12 @@ items:
               port: 8080
               scheme: HTTP
             initialDelaySeconds: 10
+          volumeMounts:
+            - mountPath: /home/jboss/ObjectStore
+              name: lra-coordinator-data
+        volumes:
+          - name: lra-coordinator-data
+            emptyDir: {}
     triggers:
     - type: ConfigChange
     - imageChangeParams:
diff --git a/saga/ocp-resources/lra-coordinator.yaml b/saga/ocp-resources/lra-coordinator.yaml
index 75582fc..94c853d 100644
--- a/saga/ocp-resources/lra-coordinator.yaml
+++ b/saga/ocp-resources/lra-coordinator.yaml
@@ -44,7 +44,7 @@ items:
     tags:
     - from:
         kind: DockerImage
-        name: docker.io/jbosstm/lra-coordinator:latest
+        name: quay.io/jbosstm/lra-coordinator:latest
       generation: 0
       importPolicy: {}
       name: "latest"
@@ -94,7 +94,7 @@ items:
               scheme: HTTP
             initialDelaySeconds: 10
           volumeMounts:
-          - mountPath: /data
+          - mountPath: /home/jboss/ObjectStore
             name: lra-coordinator-data
         volumes:
         - name: lra-coordinator-data
diff --git a/saga/readme.adoc b/saga/readme.adoc
index 7d0fbe4..af5b36a 100644
--- a/saga/readme.adoc
+++ b/saga/readme.adoc
@@ -41,7 +41,11 @@ First the app starts the saga LRA, passing the id to the entry point REST
 
 [source,shell]
 ----
+#local environment
 curl -X POST http://localhost:8084/api/saga?id=1
+
+#Openshift cluster
+curl -X POST "http://$(oc get route camel-example-spring-boot-saga-app -o go-template --template='{{.spec.host}}')/api/saga?id=1"
 ----
 
 in the log
@@ -122,6 +126,8 @@ Go to https://developers.redhat.com/developer-sandbox/get-started after login, c
 
 Then login into the Openshift and copy the command login clicking on the link `Copy Login Command` in the OpenShift console (the command will be something similar to `oc login --token=sha256~xxxx --server=https://api.sandbox-xxxx.openshiftapps.com:6443`).
 
+Select your project `oc project xxxxxx-dev`
+
 Run that command on the terminal and then run the installation script `./install-ocp-ephemeral.sh`
 
 ===== Check OCP generated resources