Skip to content

Commit 7abc52a

Browse files
authored
Add iFix instructions
1 parent 9273387 commit 7abc52a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,42 @@ Add the MQ Client libraries to your existing image by running `docker build -t a
7272

7373
`<AceOnlyImageTag>` is the tag of the image you want to add the client libs to i.e. ace-only. You can supply a customer URL for the MQ binaries by setting the argument MQ_URL
7474

75+
### Applying an iFix to an existing image
76+
77+
If you need to apply an iFix to an existing image, this can be done using the following Dockerfile sample. It requires the iFix to use the mqsifixinst.sh installation method.
78+
79+
```Dockerfile
80+
ARG ACE_IMAGE=cp.icr.io/cp/appc/ace-server-prod@sha256:f31b9adcfd4a77ba8c62b92c6f34985ef1f2d53e8082f628f170013eaf4c9003
81+
FROM $ACE_IMAGE
82+
83+
ENV IFIX_TAR=12.0.2.0-ACE-LinuxX64-TFIT38649.tar.gz
84+
ADD $IFIX_TAR ./fix
85+
86+
USER root
87+
88+
RUN cd /home/aceuser/fix \
89+
&& IFIX=${IFIX_TAR::${#IFIX_TAR}-7} \
90+
&& ./mqsifixinst.sh /opt/ibm/ace-12 install $IFIX \
91+
&& cd /home/aceuser \
92+
&& rm -rf /home/aceuser/fix
93+
94+
USER 1000
95+
```
96+
97+
Update the Dockerfile such that
98+
99+
- ACE_IMAGE points at your base image
100+
- IFIX_TAR is the name of the iFix download file. This must be located in the same directory as the Dockerfile
101+
- USER must be updated to match the ID of the ace user
102+
103+
To build the image use a command such as the following:
104+
105+
```bash
106+
docker build -f Dockerfile --tag myregistry.com/ace/ace-server-prod:12.0.2.0-ACE-LinuxX64-TFIT38649 .
107+
```
108+
109+
The resulting inage should then be used using the same options as the original base image
110+
75111
## Usage
76112

77113
### Accepting the License

0 commit comments

Comments
 (0)