Skip to content

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

Open
@ToniCipriani

Description

@ToniCipriani

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions