Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQ Explorer fails to build on tar error in UBI #419

Open
ToniCipriani opened this issue Aug 14, 2020 · 8 comments
Open

MQ Explorer fails to build on tar error in UBI #419

ToniCipriani opened this issue Aug 14, 2020 · 8 comments

Comments

@ToniCipriani
Copy link

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 ToniCipriani changed the title MQ Explorer fails to build MQ Explorer fails to build on tar error in UBI Aug 14, 2020
@tim-minter
Copy link

I get this too, so am currently stuck

@jyoti-delhi
Copy link

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

@callumpjackson
Copy link

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

@jyoti-delhi
Copy link

Hi ,

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

@jyoti-delhi
Copy link

image

@callumpjackson
Copy link

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.

@jyoti-delhi
Copy link

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

image

@callumpjackson
Copy link

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.

JEFFLUFC pushed a commit that referenced this issue Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants