Skip to content

Commit d9a49bc

Browse files
authored
Merge pull request #193 from tdolby-at-uk-ibm-com/master
MQ client sample updates
2 parents 82be4c0 + f37eb79 commit d9a49bc

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

samples/mqclient/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG FROMIMAGE=cp.icr.io/cp/appc/ace:12.0.4.0-r1
1+
ARG FROMIMAGE=cp.icr.io/cp/appc/ace:12.0.8.0-r1
22
FROM ${FROMIMAGE}
33

44
USER root
@@ -27,4 +27,4 @@ RUN chmod u+x /usr/local/bin/install-*.sh \
2727

2828
ENV MQCERTLABL=aceclient
2929

30-
USER 1001
30+
USER 1001

samples/mqclient/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,22 @@
99

1010
First [build the ACE image](../../README.md#Building-a-container-image) or obtain one of the shipped images.
1111

12-
Download a copy of the MQ redistributable client Example URL: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist/9.2.0.4-IBM-MQC-Redist-LinuxX64.tar.gz
12+
Determine the link for the version of the MQ client to be used, using FixCentral or the standard redistributable
13+
client download site. An example URL would be https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist/9.3.2.0-IBM-MQC-Redist-LinuxX64.tar.gz
14+
for the client.
1315

14-
In the `sample/mqclient` folder:
16+
In this folder, run the docker command as follows (replacing the product version and MQ link as appropriate):
1517

1618
```bash
17-
docker build -t aceapp --build-arg FROMIMAGE=ace:12.0.4.0-r1 --build-arg MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist/9.2.0.4-IBM-MQC-Redist-LinuxX64.tar.gz --file Dockerfile .
19+
docker build -t aceapp --build-arg FROMIMAGE=cp.icr.io/cp/appc/ace:12.0.8.0-r1 --build-arg MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist/9.3.2.0-IBM-MQC-Redist-LinuxX64.tar.gz --file Dockerfile .
1820
```
1921

2022
## Running the sample
2123

2224
To run the container, launch the pod using a command such as:
2325

2426
```bash
25-
`docker run -d -p 7600:7600 -p 7800:7800 -e LICENSE=accept aceapp`
27+
docker run -d -p 7600:7600 -p 7800:7800 -e LICENSE=accept aceapp
2628
```
2729

28-
This wll then start an IntegrationServer with a MQ Client installed.
30+
This wll then start an IntegrationServer with the MQ Client installed.

samples/mqclient/install-mq.sh

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,13 @@ if [ -f "${DIR_TMP}/bin/genmqpkg.sh" ]
3636
then
3737
# Generate MQ package in INSTALLATION_DIR
3838
#
39-
# Used if the downloaded package is the MQ redistributable client. Example URL:
40-
#
41-
# https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist/9.2.0.4-IBM-MQC-Redist-LinuxX64.tar.gz
39+
# Used if the downloaded package is the MQ redistributable client package from FixCentral. Example URL:
40+
#
41+
# https://ak-delivery04-mul.dhe.ibm.com/sdfdl/v2/sar/CM/WS/0b41k/0/Xa.2/Xb.juSYLTSp44S03gmhuuKNya5CV2_SpQJ-2LPjgK-iHtqctHmMpcuW1gX5kas/Xc.CM/WS/0b41k/0/9.3.1.1-IBM-MQC-Redist-LinuxX64.tar.gz/Xd./Xf.LPR.D1VK/Xg.12236559/Xi.habanero/XY.habanero/XZ.0CQLlyfoENy06FxypR3Q8j0XiSzkn_t0/9.3.1.1-IBM-MQC-Redist-LinuxX64.tar.gz
42+
#
43+
# or directly from
44+
#
45+
# https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqdev/redist/9.3.2.0-IBM-MQC-Redist-LinuxX64.tar.gz
4246
#
4347
echo "Detected genmqpkg.sh; installing MQ client components"
4448
export genmqpkg_inc32=0
@@ -80,12 +84,12 @@ else
8084
fi
8185
#
8286
# Used if the downloaded package is the MQ client package from FixCentral. Example URL:
83-
#
84-
# https://ak-delivery04-mul.dhe.ibm.com/sdfdl/v2/sar/CM/WS/0a3ih/0/Xa.2/Xb.jusyLTSp44S0BnrSUlhcQXsmOX33PXiMu_opTWF4XkF7jFZV8UxrP0RFSE0/Xc.CM/WS/0a3ih/0/9.2.0.4-IBM-MQC-LinuxX64.tar.gz/Xd./Xf.LPR.D1VK/Xg.11634360/Xi.habanero/XY.habanero/XZ.m7uIgNXpo_VTCGzC-hylOC79m0eKS5pi/9.2.0.4-IBM-MQC-LinuxX64.tar.gz
87+
#
88+
# https://ak-delivery04-mul.dhe.ibm.com/sdfdl/v2/sar/CM/WS/0b41a/0/Xa.2/Xb.jusyLTSp44S03gmhUUKWLqYocJ4a4bPB68Y8a4ir1VLbUn2OCPlMcoPXCfk/Xc.CM/WS/0b41a/0/9.3.1.1-IBM-MQC-LinuxX64.tar.gz/Xd./Xf.LPR.D1VK/Xg.12236562/Xi.habanero/XY.habanero/XZ.vr1ZpkKu0T03LhrAVMoMz9ec8315viqv/9.3.1.1-IBM-MQC-LinuxX64.tar.gz
8589
#
8690
# Also used if the downloaded package is the full MQ developer package. Example URL:
8791
#
88-
# https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev924_linux_x86-64.tar.gz
92+
# https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev932_linux_x86-64.tar.gz
8993
#
9094
echo "Did not find genmqpkg.sh; installing MQ client components using rpm"
9195
$RPM && DIR_RPM=$(find ${DIR_TMP} -name "*.rpm" -printf "%h\n" | sort -u | head -1)
@@ -106,4 +110,4 @@ fi
106110
rm -rf ${DIR_TMP}
107111

108112
# Create the directory for MQ configuration files
109-
install --directory --mode 2775 --owner 1001 --group root /etc/mqm
113+
install --directory --mode 2775 --owner 1001 --group root /etc/mqm

0 commit comments

Comments
 (0)