File tree Expand file tree Collapse file tree 10 files changed +25
-25
lines changed Expand file tree Collapse file tree 10 files changed +25
-25
lines changed Original file line number Diff line number Diff line change 1010ARG BASE_IMAGE=registry.access.redhat.com/ubi8/python-312
1111FROM $BASE_IMAGE
1212
13- ENV VRMF=9.4.3 .0 \
13+ ENV VRMF=9.4.4 .0 \
1414 genmqpkg_incnls=1 \
1515 genmqpkg_incsdk=1 \
1616 genmqpkg_inctls=1
@@ -107,7 +107,7 @@ ENV LD_LIBRARY_PATH=/opt/mqm/lib64
107107# User 1001 is the default application user in this base container image
108108USER 1001
109109
110- # Install the MQ Python library. This will build against the installed SDK
110+ # Install the MQ Python library. This will build against the installed MQ SDK
111111RUN pip install --verbose ibmmq
112112# RUN pip install ibmmq
113113
Original file line number Diff line number Diff line change 66# Basic name for the container. If we have a version tag from a git clone, use that
77# in the container tag. Otherwise just use "latest"
88TAG=mq-python-example-connect
9- VER=` git tag -l 2> /dev/null| sort | tail -1 `
9+ VER=` git tag -l 2> /dev/null| grep -v " ^v1 " | sort | tail -1 `
1010if [ -z " $VER " ]
1111then
1212 VER=" latest"
2929 # set an environment variable to explicitly configure it.
3030 addr=` ip -4 addr | grep -v altname | grep " state UP" -A2 | grep inet | tail -n1 | awk ' {print $2}' | cut -f1 -d' /' `
3131
32- if [ ! -z " FORCE_ADDR" ]
32+ if [ ! -z " $ FORCE_ADDR" ]
3333 then
3434 addr=$FORCE_ADDR
3535 fi
3636
3737 echo " Local address is $addr "
3838 port=" 1414"
39- if [ ! -z " addr" ]
39+ if [ ! -z " $ addr" ]
4040 then
4141 # Run the container.
4242 docker run --rm \
Original file line number Diff line number Diff line change 1717# The version should correspond to PEP440 and gets normalised if
1818# not in the right format. VRM can be followed with a|b|rc with a further numeric
1919# to indicate alpha/beta/release-candidate versions.
20- VERSION = '2.0.0b2 '
20+ VERSION = '2.0.0 '
2121
2222# If the MQ SDK is in a non-default location, set MQ_FILE_PATH environment variable.
2323custom_path = os .environ .get ('MQ_FILE_PATH' , None )
@@ -185,9 +185,9 @@ def get_locations_by_command_path(command_path):
185185 print('Here is the message:', msg)
186186
187187Many more examples are in the `project repository
188- <https://github.com/ibm-messaging/mq-mqi-python/tree/main/code/examples/>`_.
188+ <https://github.com/ibm-messaging/mq-mqi-python/tree/main/code/examples/>`_
189189and in the `dev-patterns repository
190- <https://github.com/ibm-messaging/mq-dev-patterns/tree/master/Python/>' _.
190+ <https://github.com/ibm-messaging/mq-dev-patterns/tree/master/Python/>` _.
191191
192192"""
193193
Original file line number Diff line number Diff line change @@ -119,10 +119,10 @@ then
119119 exit 1
120120fi
121121
122- cd $src /code/examples
122+ cd $src
123123echo
124124echo " Looking for MQ VRMF info..."
125- cmdlevel=` grep MQCMDL_CURRENT_LEVEL .. /ibmmq/CMQSTRC.py | awk ' {print $3}' | sed " s/,//g" `
125+ cmdlevel=` grep MQCMDL_CURRENT_LEVEL code /ibmmq/CMQSTRC.py | awk ' {print $3}' | sed " s/,//g" `
126126echo " Command level in repo = $cmdlevel "
127127
128128# The Dockerfile ought to be pointing at the most recent version. Whose Redist Client
@@ -131,7 +131,7 @@ echo " Command level in repo = $cmdlevel"
131131# Though we can point the container to download from a local server instead of public instead.
132132#
133133# No other files currently seem to have a VRMF dependency.
134- for f in Dockerfile
134+ for f in code/examples/ Dockerfile
135135do
136136 vrmf=` grep " VRMF=" $f | cut -f2 -d" " | cut -f2 -d=`
137137 if [ -z " $vrmf " ]
@@ -303,8 +303,9 @@ main 2>&1 |\
303303
304304echo
305305echo " ---------------------"
306- grep -aq -E " WARN|ERR" $logFile
307- if [ $? -eq 0 ]
306+ # It's ok to get a warning when an uninstall fails because it's not already installed
307+ cnt=` grep -a -E " WARN|ERR" $logFile | grep -v " Skipping" | wc -l`
308+ if [ $cnt -ne 0 ]
308309then
309310 echo
310311 echo " ERROR: Checking process has a problem. Review $logFile for details."
Original file line number Diff line number Diff line change 1919
2020 cd $curdir
2121 . $venv /bin/activate
22- pip uninstall -y ibmmq
22+ pip uninstall -y ibmmq > /dev/null 2>&1
2323 cd ..
2424
2525 # Do an install of the local tree to check it builds
Original file line number Diff line number Diff line change 88# Files are renamed as they are copied, and the primary
99# CMQC.py uses the correct platform-specific variant.
1010
11-
1211# Copyright (c) 2025 IBM Corporation. All Rights Reserved.
1312
1413function printSyntax {
@@ -19,9 +18,9 @@ Options:
1918 1 or USER : release-stream-USER-level_P
2019 2 or STREAM : release-stream-level_P
2120 3 or RELEASE: release-level_P
22- 4 or FREE : the full level as entered (no added _P)
23- 5 or GOLD : gold/level_P
24- -l level (no default)
21+ 4 or FREE : the full level as entered (no automatically added _P)
22+ 5 or GOLD : gold/release- level_P
23+ -l level (no default, example "L251003.10" )
2524 -m major number in output tree (default: $defaultMajor )
2625 -r release (default: $defaultRelease )
2726 -s stream (default: $defaultStream )
@@ -67,7 +66,7 @@ curdir=`pwd`
6766
6867# Default values
6968defaultMajor=p940
70- defaultRelease=p943
69+ defaultRelease=p944
7170defaultStream=dfct
7271defaultFormat=USER
7372defaultLevel=" " # No default
@@ -144,7 +143,7 @@ case $FORMAT in
144143 ;;
1451445|GOLD)
146145 gold=true
147- BUILD=" gold/$LEVEL "
146+ BUILD=" gold/$RELEASE - $ LEVEL"
148147 ;;
149148* )
150149 printSyntax
Original file line number Diff line number Diff line change 2121
2222if false
2323then
24- pip uninstall -y ibmmq
24+ pip uninstall -y ibmmq > /dev/null 2>&1
2525cd $root
2626pip install -e .
2727fi
Original file line number Diff line number Diff line change 1818 exit 1
1919fi
2020
21- pip uninstall -y $pkg
21+ pip uninstall -y $pkg > /dev/null 2>&1
2222echo " Waiting ..."
2323for i in 1 # 2 3 4 5 6 7 8 9 10 11 12
2424do
4242python -i << EOF
4343import $pkg
4444print("MQRC_NOT_AUTHORIZED = ",$pkg .CMQC.MQRC_NOT_AUTHORIZED)
45- EOF
45+ EOF
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ trap cleanup EXIT
2525
2626if [ -z " $NOREBUILD " ]
2727then
28- pip uninstall -y ibmmq
28+ pip uninstall -y ibmmq > /dev/null 2>&1
2929
3030# verbose="-v"
3131
Original file line number Diff line number Diff line change 3131
3232cd $venv
3333
34- pip uninstall -y $pkg
34+ pip uninstall -y $pkg > /dev/null 2>&1
3535# List available versions including pre-release
3636echo
3737pip index --index http://localhost:8080 --pre versions $pkg
You can’t perform that action at this time.
0 commit comments