Skip to content

Commit 5003fe5

Browse files
committed
Merge remote-tracking branch 'upstream/v3' into v3
2 parents 67adb40 + 53ed47d commit 5003fe5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ FROM ubuntu:16.04
1717
LABEL maintainer "Arthur Barr <[email protected]>"
1818

1919
# The URL to download the MQ installer from in tar.gz format
20-
ARG MQ_URL=http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev902_ubuntu_x86-64.tar.gz
20+
ARG MQ_URL=https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messaging/mqadv/mqadv_dev902_ubuntu_x86-64.tar.gz
2121

2222
# The MQ packages to install
2323
ARG MQ_PACKAGES="ibmmq-server ibmmq-java ibmmq-jre ibmmq-gskit ibmmq-web"
@@ -28,9 +28,11 @@ RUN export DEBIAN_FRONTEND=noninteractive \
2828
&& apt-get install -y --no-install-recommends \
2929
bash \
3030
bc \
31+
ca-certificates \
3132
coreutils \
3233
curl \
3334
debianutils \
35+
file \
3436
findutils \
3537
gawk \
3638
grep \
@@ -58,6 +60,11 @@ RUN export DEBIAN_FRONTEND=noninteractive \
5860
# Install MQ using the DEB packages
5961
&& apt-get update \
6062
&& apt-get install -y $MQ_PACKAGES \
63+
# Remove 32-bit libraries from 64-bit container
64+
&& find /opt/mqm /var/mqm -type f -exec file {} \; \
65+
| awk -F: '/ELF 32-bit/{print $1}' | xargs --no-run-if-empty rm -f \
66+
# Remove tar.gz files unpacked by RPM postinst scripts
67+
&& find /opt/mqm -name '*.tar.gz' -delete \
6168
# Recommended: Set the default MQ installation (makes the MQ commands available on the PATH)
6269
&& /opt/mqm/bin/setmqinst -p /opt/mqm -i \
6370
# Clean up all the downloaded files

0 commit comments

Comments
 (0)