Skip to content

Commit 67adb40

Browse files
committed
Merge branch 'v3' of https://github.com/ibm-messaging/mq-docker into v3
2 parents 66a0518 + 864531d commit 67adb40

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ 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_dev901_linux_x86-64.tar.gz
20+
ARG MQ_URL=http://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
23-
ARG MQ_PACKAGES="MQSeriesRuntime-*.rpm MQSeriesServer-*.rpm MQSeriesMsg*.rpm MQSeriesJava*.rpm MQSeriesJRE*.rpm MQSeriesGSKit*.rpm MQSeriesWeb*.rpm"
23+
ARG MQ_PACKAGES="ibmmq-server ibmmq-java ibmmq-jre ibmmq-gskit ibmmq-web"
2424

2525
RUN export DEBIAN_FRONTEND=noninteractive \
2626
# Install additional packages required by MQ, this install process and the runtime scripts
@@ -39,7 +39,6 @@ RUN export DEBIAN_FRONTEND=noninteractive \
3939
mount \
4040
passwd \
4141
procps \
42-
rpm \
4342
sed \
4443
tar \
4544
util-linux \
@@ -52,14 +51,17 @@ RUN export DEBIAN_FRONTEND=noninteractive \
5251
&& groupadd --gid 1000 mqm \
5352
&& useradd --uid 1000 --gid mqm mqm \
5453
&& usermod -G mqm root \
55-
&& cd /tmp/mq/MQServer \
54+
&& cd /tmp/mq/DebianMQServer \
5655
# Accept the MQ license
5756
&& ./mqlicense.sh -text_only -accept \
58-
# Install MQ using the RPM packages
59-
&& rpm -ivh --force-debian $MQ_PACKAGES \
57+
&& echo "deb [trusted=yes] file:/tmp/mq/DebianMQServer ./" > /etc/apt/sources.list.d/IBM_MQ.list \
58+
# Install MQ using the DEB packages
59+
&& apt-get update \
60+
&& apt-get install -y $MQ_PACKAGES \
6061
# Recommended: Set the default MQ installation (makes the MQ commands available on the PATH)
6162
&& /opt/mqm/bin/setmqinst -p /opt/mqm -i \
6263
# Clean up all the downloaded files
64+
&& rm -f /etc/apt/sources.list.d/IBM_MQ.list \
6365
&& rm -rf /tmp/mq \
6466
&& rm -rf /var/lib/apt/lists/* \
6567
# Optional: Update the command prompt with the MQ version

0 commit comments

Comments
 (0)