@@ -132,8 +132,7 @@ COPY helpers/ /opt/ibm/helpers/
132
132
COPY fixes/ /opt/ibm/fixes/
133
133
134
134
# Create symlinks && set permissions for non-root user
135
- RUN mkdir /logs \
136
- && mkdir /etc/wlp \
135
+ RUN mkdir /etc/wlp \
137
136
&& mkdir -p /opt/ibm/wlp/usr/shared/resources/lib.index.cache \
138
137
&& mkdir -p /home/default \
139
138
&& mkdir /output \
@@ -156,13 +155,25 @@ RUN mkdir /logs \
156
155
&& chmod -R g+rw /opt/ibm/wlp/usr \
157
156
&& chown -R 1001:0 /opt/ibm/wlp/output \
158
157
&& chmod -R g+rw /opt/ibm/wlp/output \
159
- && chown -R 1001:0 /logs \
160
- && chmod -R g+rw /logs \
161
158
&& chown -R 1001:0 /etc/wlp \
162
159
&& chmod -R g+rw /etc/wlp \
163
160
&& if [ -e /etc/instanton.ld.so.cache ]; then chmod g+w /etc/ld.so.cache; fi \
164
161
&& chown -R 1001:0 /home/default \
165
- && chmod -R g+rw /home/default
162
+ && chmod -R g+rw /home/default \
163
+ && mkdir -p /opt/ibm/links \
164
+ && chown -R 1001:0 /opt/ibm/links \
165
+ && chmod -R g+rw /opt/ibm/links \
166
+ && mkdir -p /opt/ibm/logs \
167
+ && chown -R 1001:0 /opt/ibm/logs \
168
+ && chmod -R g+rw /opt/ibm/logs \
169
+ && mkdir -p /serviceability \
170
+ && chown -R 1001:0 /serviceability \
171
+ && chmod -R g+rw /serviceability
172
+
173
+ USER 1001
174
+ RUN ln -s /opt/ibm/logs /opt/ibm/links/logs
175
+ USER root
176
+ RUN ln -s /opt/ibm/links/logs /logs
166
177
167
178
# Create a new SCC layer
168
179
RUN if [ "$OPENJ9_SCC" = "true" ]; then populate_scc.sh; fi \
0 commit comments