Skip to content

Commit 544ba7b

Browse files
committed
Strip unneeded files from MQ client
1 parent 0cbee6c commit 544ba7b

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

Dockerfile.build

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,17 @@ ENV RDURL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messag
5454
VRMF=9.2.0.0
5555

5656
# Install the MQ client from the Redistributable package. This also contains the
57-
# header files we need to compile against.
57+
# header files we need to compile against. Setup the subset of the package
58+
# we are going to keep - the genmqpkg.sh script removes unneeded parts
59+
ENV genmqpkg_incnls=1 \
60+
genmqpkg_incsdk=1 \
61+
genmqpkg_inctls=1
62+
5863
RUN cd /opt/mqm \
5964
&& curl -LO "$RDURL/$VRMF-$RDTAR" \
6065
&& tar -zxf ./*.tar.gz \
61-
&& rm -f ./*.tar.gz
66+
&& rm -f ./*.tar.gz \
67+
&& bin/genmqpkg.sh -b /opt/mqm
6268

6369
# Insert the script that will do the build
6470
COPY scripts/buildInDocker.sh $GOPATH

Dockerfile.run

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,17 @@ ENV RDURL="https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/messag
3434
VRMF=9.2.0.0
3535

3636
# Install the MQ client from the Redistributable package. This also contains the
37-
# header files we need to compile against.
37+
# header files we need to compile against. Setup the subset of the package
38+
# we are going to keep - the genmqpkg.sh script removes unneeded parts
39+
ENV genmqpkg_incnls=1 \
40+
genmqpkg_incsdk=1 \
41+
genmqpkg_inctls=1
42+
3843
RUN cd /opt/mqm \
3944
&& curl -LO "$RDURL/$VRMF-$RDTAR" \
4045
&& tar -zxf ./*.tar.gz \
41-
&& rm -f ./*.tar.gz
46+
&& rm -f ./*.tar.gz \
47+
&& bin/genmqpkg.sh -b /opt/mqm
4248

4349
ENV LD_LIBRARY_PATH="/opt/mqm/lib64:/usr/lib64" \
4450
MQ_CONNECT_TYPE=CLIENT

0 commit comments

Comments
 (0)