mq-container
mq-container copied to clipboard
MQ Explorer fails to build on tar error in UBI
MQ Explorer Docker Container fails to build. It appears the ubi8:ubi-minimal base image does not have tar to extract the MQ install package.
Sending build context to Docker daemon 16.14MB
Step 1/10 : FROM registry.redhat.io/ubi8/ubi-minimal AS mq-explorer
---> 86c870596572
Step 2/10 : ARG MQ_URL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev912_linux_x86-64.tar.gz"
---> Using cache
---> 0e8752f36e43
Step 3/10 : ENV MQ_PACKAGES="MQSeriesRuntime*.rpm MQSeriesJRE*.rpm MQSeriesExplorer*.rpm"
---> Using cache
---> 77a1514a6615
Step 4/10 : ARG MQM_UID=888
---> Using cache
---> adeb9cb5351e
Step 5/10 : RUN microdnf install -y gtk2 libXtst && microdnf clean all
---> Using cache
---> 60fb1c2546ec
Step 6/10 : ADD install-mq.sh /usr/local/bin/
---> Using cache
---> c47aaedb6382
Step 7/10 : RUN chmod u+x /usr/local/bin/install-mq.sh && sleep 1 && install-mq.sh $MQM_UID && rm -rf /var/mqm && /opt/mqm/bin/crtmqdir -f -s
---> Running in 988818d1cff1
+ test -f /usr/bin/rpm
+ RPM=true
+ test -f /usr/bin/apt-get
+ UBUNTU=false
+ INSTALL_SDK=0
+ DIR_TMP=/tmp/mq
+ mkdir -p /tmp/mq
+ cd /tmp/mq
+ curl -LO https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev912_linux_x86-64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 196 100 196 0 0 544 0 --:--:-- --:--:-- --:--:-- 545
+ tar -xzf ./mqadv_dev912_linux_x86-64.tar.gz
/usr/local/bin/install-mq.sh: line 33: tar: command not found
The command '/bin/sh -c chmod u+x /usr/local/bin/install-mq.sh && sleep 1 && install-mq.sh $MQM_UID && rm -rf /var/mqm && /opt/mqm/bin/crtmqdir -f -s' returned a non-zero code: 127```
I get this too, so am currently stuck
Not able to create MQ image in local system.
How can we resolve this?
@jyoti-delhi The above appears to show that you are trying to containerize IBM MQ V8 (which is now out of long term support). I think this is also a different issue from the original. Have you tried with our latest MQ Advanced for Developer download available here?
Hi ,
Now i am getting /bin/sh: 1: cd: can't cd to /tmp/mq/MQServer

Are you sure that you are using the 9.2.4 branch of the GitHub Repo: https://github.com/ibm-messaging/mq-container/tree/9.2.4
From the output it looks like you are using an earlier branch.
Hi , Not able to resolve .Could you please help on this?

Hi - it looks like you have moved back to the RPM download- instead of using the Non-Install. Can you try and clone the GitHub repository (so you have the latest code), and then follow the instructions here.