Skip to content

Commit

Permalink
Add OpenJ9 SCC layer to full images (#175)
Browse files Browse the repository at this point in the history
Signed-off-by: Younes Manton <ymanton@ca.ibm.com>
  • Loading branch information
ymanton authored Apr 29, 2020
1 parent 15a2770 commit 71dc150
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
6 changes: 6 additions & 0 deletions releases/latest/full/Dockerfile.ubi.adoptopenjdk11
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM openliberty/open-liberty:kernel-java11-openj9-ubi

RUN cp /opt/ol/wlp/templates/servers/javaee8/server.xml /config/server.xml

# Create a new SCC layer
RUN if [ "$OPENJ9_SCC" = "true" ]; then populate_scc.sh; fi \
&& rm -rf /output/messaging /output/resources/security /logs/* $WLP_OUTPUT_DIR/.classCache \
&& chown -R 1001:0 /opt/ol/wlp/output \
&& chmod -R g+rwx /opt/ol/wlp/output
6 changes: 6 additions & 0 deletions releases/latest/full/Dockerfile.ubi.adoptopenjdk13
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM openliberty/open-liberty:kernel-java13-openj9-ubi

RUN cp /opt/ol/wlp/templates/servers/javaee8/server.xml /config/server.xml

# Create a new SCC layer
RUN if [ "$OPENJ9_SCC" = "true" ]; then populate_scc.sh; fi \
&& rm -rf /output/messaging /output/resources/security /logs/* $WLP_OUTPUT_DIR/.classCache \
&& chown -R 1001:0 /opt/ol/wlp/output \
&& chmod -R g+rwx /opt/ol/wlp/output
6 changes: 6 additions & 0 deletions releases/latest/full/Dockerfile.ubi.adoptopenjdk8
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM openliberty/open-liberty:kernel-java8-openj9-ubi

RUN cp /opt/ol/wlp/templates/servers/javaee8/server.xml /config/server.xml

# Create a new SCC layer
RUN if [ "$OPENJ9_SCC" = "true" ]; then populate_scc.sh; fi \
&& rm -rf /output/messaging /output/resources/security /logs/* $WLP_OUTPUT_DIR/.classCache \
&& chown -R 1001:0 /opt/ol/wlp/output \
&& chmod -R g+rwx /opt/ol/wlp/output
6 changes: 6 additions & 0 deletions releases/latest/full/Dockerfile.ubi.ibmjava8
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM openliberty/open-liberty:kernel-java8-ibmjava-ubi

RUN cp /opt/ol/wlp/templates/servers/javaee8/server.xml /config/server.xml

# Create a new SCC layer
RUN if [ "$OPENJ9_SCC" = "true" ]; then populate_scc.sh; fi \
&& rm -rf /output/messaging /output/resources/security /logs/* $WLP_OUTPUT_DIR/.classCache \
&& chown -R 1001:0 /opt/ol/wlp/output \
&& chmod -R g+rwx /opt/ol/wlp/output
6 changes: 6 additions & 0 deletions releases/latest/full/Dockerfile.ubuntu.adoptopenjdk8
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
FROM open-liberty:kernel-java8-openj9

RUN cp /opt/ol/wlp/templates/servers/javaee8/server.xml /config/server.xml

# Create a new SCC layer
RUN if [ "$OPENJ9_SCC" = "true" ]; then populate_scc.sh; fi \
&& rm -rf /output/messaging /output/resources/security /logs/* $WLP_OUTPUT_DIR/.classCache \
&& chown -R 1001:0 /opt/ol/wlp/output \
&& chmod -R g+rwx /opt/ol/wlp/output

0 comments on commit 71dc150

Please sign in to comment.