diff --git a/build/build.sh b/build/build.sh index 4f14dfc3..ace001fd 100755 --- a/build/build.sh +++ b/build/build.sh @@ -52,7 +52,7 @@ then fi if [ ! -z "$from" ] then - buildCommand="$buildCommand --build-arg IMAGE=$from" + buildCommand="$buildCommand --build-arg PARENT_IMAGE=$from" fi buildCommand="$buildCommand ." diff --git a/build/test-pet-clinic/Dockerfile b/build/test-pet-clinic/Dockerfile index a5026a69..f4132249 100644 --- a/build/test-pet-clinic/Dockerfile +++ b/build/test-pet-clinic/Dockerfile @@ -1,5 +1,5 @@ -ARG IMAGE=openliberty/open-liberty:kernel-slim-java8-openj9-ubi -FROM ${IMAGE} as staging +ARG PARENT_IMAGE=openliberty/open-liberty:kernel-slim-java8-openj9-ubi +FROM $PARENT_IMAGE as staging # Copy server config so springBootUtility can be downloaded by featureUtility in the next step COPY --chown=1001:0 server.xml /config/server.xml @@ -14,7 +14,7 @@ RUN springBootUtility thin \ --targetThinAppPath=/staging/myThinApp.jar \ --targetLibCachePath=/staging/lib.index.cache -FROM ${IMAGE} +FROM $PARENT_IMAGE COPY --chown=1001:0 server.xml /config/server.xml ARG VERBOSE=false diff --git a/build/test-stock-quote/Dockerfile b/build/test-stock-quote/Dockerfile index 0a41c03c..37c3cdad 100644 --- a/build/test-stock-quote/Dockerfile +++ b/build/test-stock-quote/Dockerfile @@ -1,5 +1,5 @@ -ARG IMAGE=openliberty/open-liberty:kernel-slim-ubi -FROM ${IMAGE} +ARG PARENT_IMAGE=openliberty/open-liberty:kernel-slim-ubi +FROM $PARENT_IMAGE ARG VERBOSE=false diff --git a/build/test-stock-trader/Dockerfile b/build/test-stock-trader/Dockerfile index cdb93152..cc3e2ac2 100644 --- a/build/test-stock-trader/Dockerfile +++ b/build/test-stock-trader/Dockerfile @@ -1,5 +1,5 @@ -ARG IMAGE=openliberty/open-liberty:kernel-slim-ubi -FROM ${IMAGE} +ARG PARENT_IMAGE=openliberty/open-liberty:kernel-slim-ubi +FROM $PARENT_IMAGE ARG VERBOSE=false diff --git a/releases/24.0.0.6/full/Dockerfile.ubi.ibmjava8 b/releases/24.0.0.6/full/Dockerfile.ubi.ibmjava8 index b1ac11e3..96589b74 100644 --- a/releases/24.0.0.6/full/Dockerfile.ubi.ibmjava8 +++ b/releases/24.0.0.6/full/Dockerfile.ubi.ibmjava8 @@ -1,4 +1,5 @@ -FROM ibmjava:8-ubi AS getRuntime +ARG PARENT_IMAGE=ibmjava:8-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM ibmjava:8-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/full/Dockerfile.ubi.openjdk11 b/releases/24.0.0.6/full/Dockerfile.ubi.openjdk11 index 9492c6e2..704f3c3d 100644 --- a/releases/24.0.0.6/full/Dockerfile.ubi.openjdk11 +++ b/releases/24.0.0.6/full/Dockerfile.ubi.openjdk11 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/full/Dockerfile.ubi.openjdk17 b/releases/24.0.0.6/full/Dockerfile.ubi.openjdk17 index 694898bf..20482402 100644 --- a/releases/24.0.0.6/full/Dockerfile.ubi.openjdk17 +++ b/releases/24.0.0.6/full/Dockerfile.ubi.openjdk17 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/full/Dockerfile.ubi.openjdk21 b/releases/24.0.0.6/full/Dockerfile.ubi.openjdk21 index 6534b040..c55bd86c 100644 --- a/releases/24.0.0.6/full/Dockerfile.ubi.openjdk21 +++ b/releases/24.0.0.6/full/Dockerfile.ubi.openjdk21 @@ -1,5 +1,4 @@ ARG PARENT_IMAGE=icr.io/appcafe/open-liberty:24.0.0.6-kernel-slim-java21-openj9-ubi-minimal - FROM $PARENT_IMAGE AS installBundle ARG VERBOSE=false @@ -33,7 +32,6 @@ RUN set -eux; \ rm -rf /output/workarea /output/logs; \ find /opt/ol/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw; -ARG PARENT_IMAGE=icr.io/appcafe/open-liberty:24.0.0.6-kernel-slim-java21-openj9-ubi-minimal FROM $PARENT_IMAGE ARG VERBOSE=false diff --git a/releases/24.0.0.6/full/Dockerfile.ubi.openjdk8 b/releases/24.0.0.6/full/Dockerfile.ubi.openjdk8 index 7f9aff88..346302ba 100644 --- a/releases/24.0.0.6/full/Dockerfile.ubi.openjdk8 +++ b/releases/24.0.0.6/full/Dockerfile.ubi.openjdk8 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk11 b/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk11 index 00828ff5..87bb54ad 100644 --- a/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk11 +++ b/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk11 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-11-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-11-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk17 b/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk17 index f60f2a96..f5eaeea0 100644 --- a/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk17 +++ b/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk17 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-17-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-17-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk8 b/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk8 index f383fe47..089b392b 100644 --- a/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk8 +++ b/releases/24.0.0.6/full/Dockerfile.ubuntu.openjdk8 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-8-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-8-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.ibmjava8 b/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.ibmjava8 index 2a35667b..5fc23cf6 100644 --- a/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.ibmjava8 +++ b/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.ibmjava8 @@ -1,4 +1,5 @@ -FROM ibmjava:8-ubi AS getRuntime +ARG PARENT_IMAGE=ibmjava:8-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM ibmjava:8-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk11 b/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk11 index 0f980400..22104883 100644 --- a/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk11 +++ b/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk11 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk17 b/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk17 index 5dcfede1..aee67511 100644 --- a/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk17 +++ b/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk17 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk21 b/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk21 index a9106784..687721e1 100644 --- a/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk21 +++ b/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk21 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN microdnf -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk8 b/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk8 index 7b61f0ff..723ae6f2 100644 --- a/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk8 +++ b/releases/24.0.0.6/kernel-slim/Dockerfile.ubi.openjdk8 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk11 b/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk11 index 8371752e..68279955 100644 --- a/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk11 +++ b/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk11 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-11-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-11-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk17 b/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk17 index b28fc421..f27c7f24 100644 --- a/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk17 +++ b/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk17 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-17-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-17-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk8 b/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk8 index ec669457..aa74ad60 100644 --- a/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk8 +++ b/releases/24.0.0.6/kernel-slim/Dockerfile.ubuntu.openjdk8 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-8-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-8-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/full/Dockerfile.ubi.ibmjava8 b/releases/24.0.0.9/full/Dockerfile.ubi.ibmjava8 index 5df64af9..323e79a4 100644 --- a/releases/24.0.0.9/full/Dockerfile.ubi.ibmjava8 +++ b/releases/24.0.0.9/full/Dockerfile.ubi.ibmjava8 @@ -1,4 +1,5 @@ -FROM ibmjava:8-ubi AS getRuntime +ARG PARENT_IMAGE=ibmjava:8-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM ibmjava:8-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/full/Dockerfile.ubi.openjdk11 b/releases/24.0.0.9/full/Dockerfile.ubi.openjdk11 index 2d0c47ca..c68f0500 100644 --- a/releases/24.0.0.9/full/Dockerfile.ubi.openjdk11 +++ b/releases/24.0.0.9/full/Dockerfile.ubi.openjdk11 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/full/Dockerfile.ubi.openjdk17 b/releases/24.0.0.9/full/Dockerfile.ubi.openjdk17 index 6eeafd32..695ad23f 100644 --- a/releases/24.0.0.9/full/Dockerfile.ubi.openjdk17 +++ b/releases/24.0.0.9/full/Dockerfile.ubi.openjdk17 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/full/Dockerfile.ubi.openjdk21 b/releases/24.0.0.9/full/Dockerfile.ubi.openjdk21 index 7db100c9..e2cf4880 100644 --- a/releases/24.0.0.9/full/Dockerfile.ubi.openjdk21 +++ b/releases/24.0.0.9/full/Dockerfile.ubi.openjdk21 @@ -1,5 +1,4 @@ ARG PARENT_IMAGE=icr.io/appcafe/open-liberty:24.0.0.9-kernel-slim-java21-openj9-ubi-minimal - FROM $PARENT_IMAGE AS installBundle ARG VERBOSE=false @@ -33,7 +32,6 @@ RUN set -eux; \ rm -rf /output/workarea /output/logs; \ find /opt/ol/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw; -ARG PARENT_IMAGE=icr.io/appcafe/open-liberty:24.0.0.9-kernel-slim-java21-openj9-ubi-minimal FROM $PARENT_IMAGE ARG VERBOSE=false diff --git a/releases/24.0.0.9/full/Dockerfile.ubi.openjdk8 b/releases/24.0.0.9/full/Dockerfile.ubi.openjdk8 index 3373c4a2..dddfd984 100644 --- a/releases/24.0.0.9/full/Dockerfile.ubi.openjdk8 +++ b/releases/24.0.0.9/full/Dockerfile.ubi.openjdk8 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk11 b/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk11 index c5b19c3c..4bbec349 100644 --- a/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk11 +++ b/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk11 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-11-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-11-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk17 b/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk17 index 13695bb8..bf3a9342 100644 --- a/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk17 +++ b/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk17 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-17-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-17-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk8 b/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk8 index 1ed44d33..9c94b2c9 100644 --- a/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk8 +++ b/releases/24.0.0.9/full/Dockerfile.ubuntu.openjdk8 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-8-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-8-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.ibmjava8 b/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.ibmjava8 index 7e7689ae..1a58100e 100644 --- a/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.ibmjava8 +++ b/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.ibmjava8 @@ -1,4 +1,5 @@ -FROM ibmjava:8-ubi AS getRuntime +ARG PARENT_IMAGE=ibmjava:8-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM ibmjava:8-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk11 b/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk11 index 8c6406f9..47cda59f 100644 --- a/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk11 +++ b/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk11 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk17 b/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk17 index c86600d9..dbb0b5f4 100644 --- a/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk17 +++ b/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk17 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk21 b/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk21 index 9faf3d0b..7e2bf894 100644 --- a/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk21 +++ b/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk21 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN microdnf -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk8 b/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk8 index 4fd708dd..83c7ac92 100644 --- a/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk8 +++ b/releases/24.0.0.9/kernel-slim/Dockerfile.ubi.openjdk8 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk11 b/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk11 index ccfba0e1..6bb30a2f 100644 --- a/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk11 +++ b/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk11 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-11-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-11-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk17 b/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk17 index a4e5f543..d23b688f 100644 --- a/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk17 +++ b/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk17 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-17-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-17-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk8 b/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk8 index 66f48f97..ce34d5ba 100644 --- a/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk8 +++ b/releases/24.0.0.9/kernel-slim/Dockerfile.ubuntu.openjdk8 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-8-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-8-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/beta/Dockerfile.ubi.openjdk21 b/releases/latest/beta/Dockerfile.ubi.openjdk21 index 039a4b9c..ada50f15 100644 --- a/releases/latest/beta/Dockerfile.ubi.openjdk21 +++ b/releases/latest/beta/Dockerfile.ubi.openjdk21 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN microdnf -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/beta/Dockerfile.ubuntu.openjdk11 b/releases/latest/beta/Dockerfile.ubuntu.openjdk11 index ce56d9f3..510bcc67 100644 --- a/releases/latest/beta/Dockerfile.ubuntu.openjdk11 +++ b/releases/latest/beta/Dockerfile.ubuntu.openjdk11 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-11-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-11-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/beta/Dockerfile.ubuntu.openjdk17 b/releases/latest/beta/Dockerfile.ubuntu.openjdk17 index 20973177..c22b81ce 100644 --- a/releases/latest/beta/Dockerfile.ubuntu.openjdk17 +++ b/releases/latest/beta/Dockerfile.ubuntu.openjdk17 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-17-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-17-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/beta/Dockerfile.ubuntu.openjdk8 b/releases/latest/beta/Dockerfile.ubuntu.openjdk8 index 3307d5de..5e538d43 100644 --- a/releases/latest/beta/Dockerfile.ubuntu.openjdk8 +++ b/releases/latest/beta/Dockerfile.ubuntu.openjdk8 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-8-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-8-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/full/Dockerfile.ubi.ibmjava8 b/releases/latest/full/Dockerfile.ubi.ibmjava8 index 5df64af9..323e79a4 100644 --- a/releases/latest/full/Dockerfile.ubi.ibmjava8 +++ b/releases/latest/full/Dockerfile.ubi.ibmjava8 @@ -1,4 +1,5 @@ -FROM ibmjava:8-ubi AS getRuntime +ARG PARENT_IMAGE=ibmjava:8-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM ibmjava:8-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/full/Dockerfile.ubi.openjdk11 b/releases/latest/full/Dockerfile.ubi.openjdk11 index 2d0c47ca..c68f0500 100644 --- a/releases/latest/full/Dockerfile.ubi.openjdk11 +++ b/releases/latest/full/Dockerfile.ubi.openjdk11 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/full/Dockerfile.ubi.openjdk17 b/releases/latest/full/Dockerfile.ubi.openjdk17 index 6eeafd32..695ad23f 100644 --- a/releases/latest/full/Dockerfile.ubi.openjdk17 +++ b/releases/latest/full/Dockerfile.ubi.openjdk17 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/full/Dockerfile.ubi.openjdk21 b/releases/latest/full/Dockerfile.ubi.openjdk21 index 70c86422..80213e0b 100644 --- a/releases/latest/full/Dockerfile.ubi.openjdk21 +++ b/releases/latest/full/Dockerfile.ubi.openjdk21 @@ -1,5 +1,4 @@ ARG PARENT_IMAGE=icr.io/appcafe/open-liberty:kernel-slim-java21-openj9-ubi-minimal - FROM $PARENT_IMAGE AS installBundle ARG VERBOSE=false @@ -33,7 +32,6 @@ RUN set -eux; \ rm -rf /output/workarea /output/logs; \ find /opt/ol/wlp ! -perm -g=rw -print0 | xargs -r -0 chmod g+rw; -ARG PARENT_IMAGE=icr.io/appcafe/open-liberty:kernel-slim-java21-openj9-ubi-minimal FROM $PARENT_IMAGE ARG VERBOSE=false diff --git a/releases/latest/full/Dockerfile.ubi.openjdk8 b/releases/latest/full/Dockerfile.ubi.openjdk8 index 3373c4a2..dddfd984 100644 --- a/releases/latest/full/Dockerfile.ubi.openjdk8 +++ b/releases/latest/full/Dockerfile.ubi.openjdk8 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/full/Dockerfile.ubuntu.openjdk11 b/releases/latest/full/Dockerfile.ubuntu.openjdk11 index c5b19c3c..4bbec349 100644 --- a/releases/latest/full/Dockerfile.ubuntu.openjdk11 +++ b/releases/latest/full/Dockerfile.ubuntu.openjdk11 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-11-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-11-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/full/Dockerfile.ubuntu.openjdk17 b/releases/latest/full/Dockerfile.ubuntu.openjdk17 index 13695bb8..bf3a9342 100644 --- a/releases/latest/full/Dockerfile.ubuntu.openjdk17 +++ b/releases/latest/full/Dockerfile.ubuntu.openjdk17 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-17-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-17-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/full/Dockerfile.ubuntu.openjdk8 b/releases/latest/full/Dockerfile.ubuntu.openjdk8 index 1ed44d33..9c94b2c9 100644 --- a/releases/latest/full/Dockerfile.ubuntu.openjdk8 +++ b/releases/latest/full/Dockerfile.ubuntu.openjdk8 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-8-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-8-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/kernel-slim/Dockerfile.ubi.ibmjava8 b/releases/latest/kernel-slim/Dockerfile.ubi.ibmjava8 index 7e7689ae..1a58100e 100644 --- a/releases/latest/kernel-slim/Dockerfile.ubi.ibmjava8 +++ b/releases/latest/kernel-slim/Dockerfile.ubi.ibmjava8 @@ -1,4 +1,5 @@ -FROM ibmjava:8-ubi AS getRuntime +ARG PARENT_IMAGE=ibmjava:8-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM ibmjava:8-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/kernel-slim/Dockerfile.ubi.openjdk11 b/releases/latest/kernel-slim/Dockerfile.ubi.openjdk11 index 8c6406f9..47cda59f 100644 --- a/releases/latest/kernel-slim/Dockerfile.ubi.openjdk11 +++ b/releases/latest/kernel-slim/Dockerfile.ubi.openjdk11 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-11-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/kernel-slim/Dockerfile.ubi.openjdk17 b/releases/latest/kernel-slim/Dockerfile.ubi.openjdk17 index c86600d9..dbb0b5f4 100644 --- a/releases/latest/kernel-slim/Dockerfile.ubi.openjdk17 +++ b/releases/latest/kernel-slim/Dockerfile.ubi.openjdk17 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-17-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/kernel-slim/Dockerfile.ubi.openjdk21 b/releases/latest/kernel-slim/Dockerfile.ubi.openjdk21 index 9faf3d0b..7e2bf894 100644 --- a/releases/latest/kernel-slim/Dockerfile.ubi.openjdk21 +++ b/releases/latest/kernel-slim/Dockerfile.ubi.openjdk21 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN microdnf -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-21-jre-ubi9-minimal +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/kernel-slim/Dockerfile.ubi.openjdk8 b/releases/latest/kernel-slim/Dockerfile.ubi.openjdk8 index 4fd708dd..83c7ac92 100644 --- a/releases/latest/kernel-slim/Dockerfile.ubi.openjdk8 +++ b/releases/latest/kernel-slim/Dockerfile.ubi.openjdk8 @@ -1,4 +1,5 @@ -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi AS getRuntime +ARG PARENT_IMAGE=icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE AS getRuntime USER root @@ -24,7 +25,7 @@ RUN yum -y install shadow-utils wget unzip openssl \ && chown -R 1001:0 /opt/ol/wlp \ && chmod -R g+rw /opt/ol/wlp -FROM icr.io/appcafe/ibm-semeru-runtimes:open-8-jdk-ubi +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk11 b/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk11 index ccfba0e1..6bb30a2f 100644 --- a/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk11 +++ b/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk11 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-11-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-11-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk17 b/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk17 index a4e5f543..d23b688f 100644 --- a/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk17 +++ b/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk17 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-17-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-17-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk8 b/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk8 index 66f48f97..ce34d5ba 100644 --- a/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk8 +++ b/releases/latest/kernel-slim/Dockerfile.ubuntu.openjdk8 @@ -1,4 +1,5 @@ -FROM ibm-semeru-runtimes:open-8-jre-jammy +ARG PARENT_IMAGE=ibm-semeru-runtimes:open-8-jre-jammy +FROM $PARENT_IMAGE USER root diff --git a/samples/security/Dockerfile b/samples/security/Dockerfile index 88799a9e..6b5332df 100644 --- a/samples/security/Dockerfile +++ b/samples/security/Dockerfile @@ -1,4 +1,5 @@ -FROM openliberty/open-liberty:kernel-slim-ubi +ARG PARENT_IMAGE=openliberty/open-liberty:kernel-slim-ubi +FROM $PARENT_IMAGE # Add my app and config COPY --chown=1001:0 server.xml /config/ diff --git a/samples/spring-petclinic/Dockerfile b/samples/spring-petclinic/Dockerfile index cf812caa..7d45d04d 100644 --- a/samples/spring-petclinic/Dockerfile +++ b/samples/spring-petclinic/Dockerfile @@ -1,5 +1,5 @@ -ARG IMAGE=openliberty/open-liberty:kernel-slim-java8-openj9-ubi -FROM ${IMAGE} as staging +ARG PARENT_IMAGE=openliberty/open-liberty:kernel-slim-java8-openj9-ubi +FROM $PARENT_IMAGE as staging # Copy server config so springBootUtility can be downloaded by featureUtility in the next step COPY --chown=1001:0 server.xml /config/server.xml @@ -14,7 +14,7 @@ RUN springBootUtility thin \ --targetThinAppPath=/staging/myThinApp.jar \ --targetLibCachePath=/staging/lib.index.cache -FROM ${IMAGE} +FROM $PARENT_IMAGE COPY --chown=1001:0 server.xml /config # This script will add the requested XML snippets to enable Liberty features and grow image to be fit-for-purpose using featureUtility