Skip to content

Commit 7931877

Browse files
authored
Merge pull request #173 from ot4i/ifix
Add iFix docs
2 parents 9273387 + 6a7e279 commit 7931877

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,38 @@ 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 `docker build -f Dockerfile --tag myregistry.com/ace/ace-server-prod:12.0.2.0-ACE-LinuxX64-TFIT38649 .`
104+
105+
The resulting image should then be used using the same options as the original base image
106+
75107
## Usage
76108

77109
### Accepting the License

0 commit comments

Comments
 (0)