How to add fix installation steps in the Docker-server file? #585
Replies: 2 comments
-
The main thing is to make sure that you're in a section of the Dockerfile which has You're right that a traditional fix which assumes the |
Beta Was this translation helpful? Give feedback.
-
We had raised a PMR for this and as per the suggestion given there (mentioned below), we made the changes and it worked "Could you please ask the user to add the same lines they mentioned in the above git issue before this line - https://github.com/ibm-messaging/mq-container/blob/9.3.5/Dockerfile-server#L147 and give it a try. It will work. " Thanks for the assistance! |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to figure out how to add fix installation steps to the Docker-server file.
What is the ask:
Install 9.3.5.0-IBM-MQ-LinuxX64-LAIT45974-317489.tar for MQ 9.3.5 version
What is not working:
###############################################################################
Main build stage, to build MQ image
###############################################################################
FROM $BASE_IMAGE:$BASE_TAG AS mq-server
ARG MQ_URL
ARG BASE_IMAGE
ARG BASE_TAG
ARG GO_WORKDIR
LABEL summary="IBM MQ Advanced Server"
description="Simplify, accelerate and facilitate the reliable exchange of data with a security-rich messaging solution — trusted by the world’s most successful enterprises"
vendor="IBM"
maintainer="IBM"
distribution-scope="private"
authoritative-source-url="https://www.ibm.com/software/passportadvantage/"
url="https://www.ibm.com/products/mq/advanced"
io.openshift.tags="mq messaging"
io.k8s.display-name="IBM MQ Advanced Server"
io.k8s.description="Simplify, accelerate and facilitate the reliable exchange of data with a security-rich messaging solution — trusted by the world’s most successful enterprises"
base-image=$BASE_IMAGE
base-image-release=$BASE_TAG
COPY --from=mq-redux /opt/mqm-redux/ /opt/mqm/
**# Customization
Adding the Rolling update fix tar to /opt/mqm dir, applying the fix and deleting the untarred dir
ADD 9.3.5.0-IBM-MQ-LinuxX64-LAIT45974-317489.tar.gz /opt/mqm
RUN cd /opt/mqm/9.3.5.0-IBM-MQ-LinuxX64-LAIT45974-317489 && ./mqfixinst.sh /opt/mqm install 9.3.5.0-IBM-MQ-LinuxX64-LAIT45974-317489
&& cd - && rm -rf /opt/mqm/9.3.5.0-IBM-MQ-LinuxX64-LAIT45974-317489
End**
What is the issue:
mqfixinst.sh fails at steps where it is trying to change ownership of certain files to mqm:mqm. We have tried to replace mqm:mqm with 1001:root as thats what is being used in other sections of the Docker-server file. But now its failing as its unable to find the actual fix files under ship directory. So it looks like probably what we are trying is not the right approach.
Looking for some pointers or documentation on how to get this working. Please advise.
Beta Was this translation helpful? Give feedback.
All reactions