@@ -17,10 +17,10 @@ FROM ubuntu:16.04
17
17
LABEL maintainer
"Arthur Barr <[email protected] >"
18
18
19
19
# 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
21
21
22
22
# 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 "
24
24
25
25
RUN export DEBIAN_FRONTEND=noninteractive \
26
26
# Install additional packages required by MQ, this install process and the runtime scripts
@@ -39,7 +39,6 @@ RUN export DEBIAN_FRONTEND=noninteractive \
39
39
mount \
40
40
passwd \
41
41
procps \
42
- rpm \
43
42
sed \
44
43
tar \
45
44
util-linux \
@@ -52,14 +51,17 @@ RUN export DEBIAN_FRONTEND=noninteractive \
52
51
&& groupadd --gid 1000 mqm \
53
52
&& useradd --uid 1000 --gid mqm mqm \
54
53
&& usermod -G mqm root \
55
- && cd /tmp/mq/MQServer \
54
+ && cd /tmp/mq/DebianMQServer \
56
55
# Accept the MQ license
57
56
&& ./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 \
60
61
# Recommended: Set the default MQ installation (makes the MQ commands available on the PATH)
61
62
&& /opt/mqm/bin/setmqinst -p /opt/mqm -i \
62
63
# Clean up all the downloaded files
64
+ && rm -f /etc/apt/sources.list.d/IBM_MQ.list \
63
65
&& rm -rf /tmp/mq \
64
66
&& rm -rf /var/lib/apt/lists/* \
65
67
# Optional: Update the command prompt with the MQ version
0 commit comments