File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,15 @@ RUN echo "ACE_11:" > /etc/debian_chroot \
3131 && sed -i 's/PASS_MIN_DAYS\t 0/PASS_MIN_DAYS\t 1/' /etc/login.defs \
3232 && sed -i 's/PASS_MAX_DAYS\t 99999/PASS_MAX_DAYS\t 90/' /etc/login.defs
3333
34- # Create a user to run as
35- RUN useradd --create-home --home-dir /home/aceuser -G mqbrkrs,sudo aceuser \
36- && sed -e 's/^%sudo .*/%sudo ALL=NOPASSWD:ALL/g' -i /etc/sudoers \
37- && su - aceuser -c '. /opt/ibm/ace-11.0.0.0/server/bin/mqsiprofile && mqsicreateworkdir /home/aceuser/ace-server'
38-
3934# Copy in script files
4035COPY *.sh /usr/local/bin/
4136
37+ # Create a user to run as, create the ace workdir, and chmod script files
38+ RUN useradd --create-home --home-dir /home/aceuser -G mqbrkrs,sudo aceuser \
39+ && sed -e 's/^%sudo .*/%sudo ALL=NOPASSWD:ALL/g' -i /etc/sudoers \
40+ && su - aceuser -c '. /opt/ibm/ace-11.0.0.0/server/bin/mqsiprofile && mqsicreateworkdir /home/aceuser/ace-server' \
41+ && chmod 755 /usr/local/bin/*
42+
4243# Set BASH_ENV to source mqsiprofile when using docker exec bash -c
4344ENV BASH_ENV=/usr/local/bin/ace_env.sh
4445
Original file line number Diff line number Diff line change @@ -10,10 +10,10 @@ FROM ace:11.0.0.0
1010ENV BAR1=Transformation_Map.bar
1111
1212# Copy in the bar file to a temporary directory
13- COPY $BAR1 /tmp
13+ COPY --chown=aceuser $BAR1 /tmp
1414
1515# Unzip the BAR file; need to use bash to make the profile work
16- RUN bash -c 'mqsicreateworkdir /home/aceuser/ace-server && mqsibar -w /home/aceuser/ace-server -a /tmp/$BAR1 -c'
16+ RUN bash -c 'mqsibar -w /home/aceuser/ace-server -a /tmp/$BAR1 -c'
1717
1818# Switch off the admin REST API for the server run, as we won't be deploying anything after start
1919RUN sed -i 's/adminRestApiPort/#adminRestApiPort/g' /home/aceuser/ace-server/server.conf.yaml
You can’t perform that action at this time.
0 commit comments