mq-container icon indicating copy to clipboard operation
mq-container copied to clipboard

MQ Explorer fails to build on tar error in UBI

Open ToniCipriani opened this issue 5 years ago • 8 comments

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```

ToniCipriani avatar Aug 14 '20 02:08 ToniCipriani

I get this too, so am currently stuck

tim-minter avatar Mar 24 '21 15:03 tim-minter

Not able to create MQ image in local system. MicrosoftTeams-image How can we resolve this?

jyoti-delhi avatar Feb 15 '22 11:02 jyoti-delhi

@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?

callumpjackson avatar Feb 15 '22 13:02 callumpjackson

Hi ,

Now i am getting /bin/sh: 1: cd: can't cd to /tmp/mq/MQServer Uploading Picture1.png…

jyoti-delhi avatar Feb 15 '22 14:02 jyoti-delhi

image

jyoti-delhi avatar Feb 15 '22 14:02 jyoti-delhi

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.

callumpjackson avatar Feb 16 '22 12:02 callumpjackson

Hi , Not able to resolve .Could you please help on this?

image

jyoti-delhi avatar Feb 17 '22 10:02 jyoti-delhi

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.

callumpjackson avatar Feb 17 '22 11:02 callumpjackson