Skip to content

Commit 6a0dcad

Browse files
authored
Update LRA Coordinator image (apache#80)
1 parent 1128576 commit 6a0dcad

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

saga/local-resources/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: "3.9"
22
services:
33
lra-coordinator:
4-
image: "docker.io/jbosstm/lra-coordinator:latest"
4+
image: "quay.io/jbosstm/lra-coordinator:latest"
55
network_mode: "host"
66
amq-broker:
77
image: "registry.redhat.io/amq7/amq-broker-rhel8:7.10"

saga/ocp-resources/lra-coordinator-ephemeral.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ items:
3131
tags:
3232
- from:
3333
kind: DockerImage
34-
name: docker.io/jbosstm/lra-coordinator:latest
34+
name: quay.io/jbosstm/lra-coordinator:latest
3535
generation: 0
3636
importPolicy: {}
3737
name: "latest"
@@ -80,6 +80,12 @@ items:
8080
port: 8080
8181
scheme: HTTP
8282
initialDelaySeconds: 10
83+
volumeMounts:
84+
- mountPath: /home/jboss/ObjectStore
85+
name: lra-coordinator-data
86+
volumes:
87+
- name: lra-coordinator-data
88+
emptyDir: {}
8389
triggers:
8490
- type: ConfigChange
8591
- imageChangeParams:

saga/ocp-resources/lra-coordinator.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ items:
4444
tags:
4545
- from:
4646
kind: DockerImage
47-
name: docker.io/jbosstm/lra-coordinator:latest
47+
name: quay.io/jbosstm/lra-coordinator:latest
4848
generation: 0
4949
importPolicy: {}
5050
name: "latest"
@@ -94,7 +94,7 @@ items:
9494
scheme: HTTP
9595
initialDelaySeconds: 10
9696
volumeMounts:
97-
- mountPath: /data
97+
- mountPath: /home/jboss/ObjectStore
9898
name: lra-coordinator-data
9999
volumes:
100100
- name: lra-coordinator-data

saga/readme.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ First the app starts the saga LRA, passing the id to the entry point REST
4141

4242
[source,shell]
4343
----
44+
#local environment
4445
curl -X POST http://localhost:8084/api/saga?id=1
46+
47+
#Openshift cluster
48+
curl -X POST "http://$(oc get route camel-example-spring-boot-saga-app -o go-template --template='{{.spec.host}}')/api/saga?id=1"
4549
----
4650

4751
in the log
@@ -122,6 +126,8 @@ Go to https://developers.redhat.com/developer-sandbox/get-started after login, c
122126

123127
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`).
124128

129+
Select your project `oc project xxxxxx-dev`
130+
125131
Run that command on the terminal and then run the installation script `./install-ocp-ephemeral.sh`
126132

127133
===== Check OCP generated resources

0 commit comments

Comments
 (0)