diff --git a/Dockerfile-template b/Dockerfile-template index 145c6b3d..00d03d31 100644 --- a/Dockerfile-template +++ b/Dockerfile-template @@ -1,13 +1,13 @@ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/README.md b/README.md index de40f1b7..7368b5e6 100644 --- a/README.md +++ b/README.md @@ -112,7 +112,7 @@ docker run -it --rm --name my-maven-project -v "$(Get-Location)":C:/Src -w C:/Sr This is a base image that you can extend, so it has the bare minimum packages needed. If you add custom package(s) to the `Dockerfile`, then you can build your local Docker image like this: - docker build --tag my_local_maven:3.9.3-jdk-8 . + docker build --tag my_local_maven:4.0.0-alpha-5-jdk-8 . # Multi-stage Builds diff --git a/amazoncorretto-11-debian/Dockerfile b/amazoncorretto-11-debian/Dockerfile index d586cc94..7444e6aa 100644 --- a/amazoncorretto-11-debian/Dockerfile +++ b/amazoncorretto-11-debian/Dockerfile @@ -19,13 +19,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/amazoncorretto-11-windowsservercore/Dockerfile b/amazoncorretto-11-windowsservercore/Dockerfile index 6cf87741..0e68c9ad 100644 --- a/amazoncorretto-11-windowsservercore/Dockerfile +++ b/amazoncorretto-11-windowsservercore/Dockerfile @@ -15,9 +15,9 @@ RUN Invoke-WebRequest -Uri $('{0}/{1}' -f $env:uri,$env:zip) -OutFile C:/$env:zi ENV JAVA_HOME=C:/ProgramData/jdk11.0.19_7 ARG USER_HOME_DIR="C:/Users/ContainerUser" -ARG MAVEN_VERSION=3.9.3 -ARG SHA=fba80f4bb0429052d558959b1bfbc99984f8cb8ff59a53baae0a0874b71a2601e2805c5e557b7b59d81716a0b4b35d1b2eeccb566c40b23cc575331a4984ef6c -ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG SHA=b49122dd2bc878cee1869f5052cc3dda91b970711d4b10cd19ba1e5842060009e425309c9ad6530cf465bcc36abb6a66543c7e08d47f35fe090d6433382c6aa5 +ARG BASE_URL=https://apache.osuosl.org/maven/maven-4/${MAVEN_VERSION}/binaries RUN Invoke-WebRequest -Uri ${env:BASE_URL}/apache-maven-${env:MAVEN_VERSION}-bin.zip -OutFile ${env:TEMP}/apache-maven.zip ; ` if((Get-FileHash -Algorithm SHA512 -Path ${env:TEMP}/apache-maven.zip).Hash.ToLower() -ne ${env:SHA}) { exit 1 } ; ` diff --git a/amazoncorretto-11/Dockerfile b/amazoncorretto-11/Dockerfile index 5579d53e..a2b5ba37 100644 --- a/amazoncorretto-11/Dockerfile +++ b/amazoncorretto-11/Dockerfile @@ -5,13 +5,13 @@ RUN yum install -y tar which gzip # TODO remove # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/amazoncorretto-17-debian/Dockerfile b/amazoncorretto-17-debian/Dockerfile index 22ae1f86..6ae75d3d 100644 --- a/amazoncorretto-17-debian/Dockerfile +++ b/amazoncorretto-17-debian/Dockerfile @@ -19,13 +19,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/amazoncorretto-17/Dockerfile b/amazoncorretto-17/Dockerfile index 951a1039..7be72173 100644 --- a/amazoncorretto-17/Dockerfile +++ b/amazoncorretto-17/Dockerfile @@ -5,13 +5,13 @@ RUN yum install -y tar which gzip # TODO remove # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/amazoncorretto-19/Dockerfile b/amazoncorretto-19/Dockerfile new file mode 100644 index 00000000..e004cbec --- /dev/null +++ b/amazoncorretto-19/Dockerfile @@ -0,0 +1,39 @@ +FROM amazoncorretto:19 + +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG USER_HOME_DIR="/root" +ARG SHA=a7ab16e0a816ee0ed0fc4d275994fd7ef0429dec4c8ff5f2a1be84cc82d1f7e6b731dc6de192edb7e7a5e5b9d67d1cd59b1daabea57b3e9c4e05ff78b5adab26 +ARG BASE_URL=https://downloads.apache.org/maven/maven-4/${MAVEN_VERSION}/binaries + +ENV MAVEN_HOME /usr/share/maven +ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" + +RUN set -x \ + && yum install -y tar which gzip \ + && yum clean all \ + && rm -rf /var/cache/yum/* \ + && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ + && echo "${SHA} *apache-maven-${MAVEN_VERSION}-bin.tar.gz" | sha512sum -c - \ + && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc \ + && export GNUPGHOME="$(mktemp -d)" \ + && for key in \ + 6A814B1F869C2BBEAB7CB7271A2A1C94BDE89688 \ + 29BEA2A645F2D6CED7FB12E02B172E3E156466E8 \ + 073F7A9345756F3B40CDB99E6C70A3B7599C5736 \ + ; do \ + gpg --batch --keyserver hkps://keyserver.ubuntu.com --recv-keys "$key" ; \ + done \ + && gpg --batch --verify apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc apache-maven-${MAVEN_VERSION}-bin.tar.gz \ + && mkdir -p ${MAVEN_HOME} ${MAVEN_HOME}/ref \ + && tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz -C ${MAVEN_HOME} --strip-components=1 \ + # GNUPGHOME may fail to delete even with -rf + && (rm -rf "$GNUPGHOME" apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc apache-maven-${MAVEN_VERSION}-bin.tar.gz || true) \ + && ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn \ + # smoke test + && mvn --version + +COPY mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY settings-docker.xml /usr/share/maven/ref/ + +ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] +CMD ["mvn"] diff --git a/amazoncorretto-20-debian/Dockerfile b/amazoncorretto-20-debian/Dockerfile index 273d31d6..a60aa7ea 100644 --- a/amazoncorretto-20-debian/Dockerfile +++ b/amazoncorretto-20-debian/Dockerfile @@ -19,13 +19,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/amazoncorretto-20/Dockerfile b/amazoncorretto-20/Dockerfile index 492b6244..1a14afd6 100644 --- a/amazoncorretto-20/Dockerfile +++ b/amazoncorretto-20/Dockerfile @@ -5,13 +5,13 @@ RUN yum install -y tar which gzip # TODO remove # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/amazoncorretto-8-debian/Dockerfile b/amazoncorretto-8-debian/Dockerfile index 24ea00c7..9c698bbf 100644 --- a/amazoncorretto-8-debian/Dockerfile +++ b/amazoncorretto-8-debian/Dockerfile @@ -19,13 +19,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/amazoncorretto-8-windowsservercore/Dockerfile b/amazoncorretto-8-windowsservercore/Dockerfile index e9609959..e793db39 100644 --- a/amazoncorretto-8-windowsservercore/Dockerfile +++ b/amazoncorretto-8-windowsservercore/Dockerfile @@ -15,9 +15,9 @@ RUN Invoke-WebRequest -Uri $('{0}/{1}' -f $env:uri,$env:zip) -OutFile C:/$env:zi ENV JAVA_HOME=C:/ProgramData/jdk1.8.0_372 ARG USER_HOME_DIR="C:/Users/ContainerUser" -ARG MAVEN_VERSION=3.9.3 -ARG SHA=fba80f4bb0429052d558959b1bfbc99984f8cb8ff59a53baae0a0874b71a2601e2805c5e557b7b59d81716a0b4b35d1b2eeccb566c40b23cc575331a4984ef6c -ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG SHA=b49122dd2bc878cee1869f5052cc3dda91b970711d4b10cd19ba1e5842060009e425309c9ad6530cf465bcc36abb6a66543c7e08d47f35fe090d6433382c6aa5 +ARG BASE_URL=https://apache.osuosl.org/maven/maven-4/${MAVEN_VERSION}/binaries RUN Invoke-WebRequest -Uri ${env:BASE_URL}/apache-maven-${env:MAVEN_VERSION}-bin.zip -OutFile ${env:TEMP}/apache-maven.zip ; ` if((Get-FileHash -Algorithm SHA512 -Path ${env:TEMP}/apache-maven.zip).Hash.ToLower() -ne ${env:SHA}) { exit 1 } ; ` diff --git a/amazoncorretto-8/Dockerfile b/amazoncorretto-8/Dockerfile index 2c36aa51..c8daf47f 100644 --- a/amazoncorretto-8/Dockerfile +++ b/amazoncorretto-8/Dockerfile @@ -5,13 +5,13 @@ RUN yum install -y tar which gzip # TODO remove # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/azulzulu-11-alpine/Dockerfile b/azulzulu-11-alpine/Dockerfile index dbe8d39a..2acd75a6 100644 --- a/azulzulu-11-alpine/Dockerfile +++ b/azulzulu-11-alpine/Dockerfile @@ -5,13 +5,13 @@ RUN apk add --no-cache bash procps curl tar # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/azulzulu-11-windowsservercore/Dockerfile b/azulzulu-11-windowsservercore/Dockerfile index 3e9c5b4e..2957ecdf 100644 --- a/azulzulu-11-windowsservercore/Dockerfile +++ b/azulzulu-11-windowsservercore/Dockerfile @@ -13,9 +13,9 @@ RUN Invoke-WebRequest -Uri $('{0}/{1}' -f $env:uri,$env:zip) -OutFile C:/$env:zi Remove-Item C:/${env:zip} ARG USER_HOME_DIR="C:/Users/ContainerUser" -ARG MAVEN_VERSION=3.9.3 -ARG SHA=fba80f4bb0429052d558959b1bfbc99984f8cb8ff59a53baae0a0874b71a2601e2805c5e557b7b59d81716a0b4b35d1b2eeccb566c40b23cc575331a4984ef6c -ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG SHA=b49122dd2bc878cee1869f5052cc3dda91b970711d4b10cd19ba1e5842060009e425309c9ad6530cf465bcc36abb6a66543c7e08d47f35fe090d6433382c6aa5 +ARG BASE_URL=https://apache.osuosl.org/maven/maven-4/${MAVEN_VERSION}/binaries RUN Invoke-WebRequest -Uri ${env:BASE_URL}/apache-maven-${env:MAVEN_VERSION}-bin.zip -OutFile ${env:TEMP}/apache-maven.zip ; ` if((Get-FileHash -Algorithm SHA512 -Path ${env:TEMP}/apache-maven.zip).Hash.ToLower() -ne ${env:SHA}) { exit 1 } ; ` diff --git a/azulzulu-11/Dockerfile b/azulzulu-11/Dockerfile index 0266f684..8f18e9f3 100644 --- a/azulzulu-11/Dockerfile +++ b/azulzulu-11/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/azulzulu-17-alpine/Dockerfile b/azulzulu-17-alpine/Dockerfile index 3764b381..b117d474 100644 --- a/azulzulu-17-alpine/Dockerfile +++ b/azulzulu-17-alpine/Dockerfile @@ -5,13 +5,13 @@ RUN apk add --no-cache bash procps curl tar # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/azulzulu-17/Dockerfile b/azulzulu-17/Dockerfile index 71d4f5ca..f870e118 100644 --- a/azulzulu-17/Dockerfile +++ b/azulzulu-17/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/common.sh b/common.sh index 8e6c7fa4..d0f34ae4 100755 --- a/common.sh +++ b/common.sh @@ -66,7 +66,7 @@ version-aliases() { fi done - # tag eclipse-temurin-8-alpine -> 3.9.3-eclipse-temurin-alpine + # tag eclipse-temurin-8-alpine -> 4.0.0-alpha-5-eclipse-temurin-alpine if [ -n "${extra_tags[$version]:-}" ]; then versionAliases+=("$mavenVersion-${extra_tags[$version]}") fi diff --git a/eclipse-temurin-11-alpine/Dockerfile b/eclipse-temurin-11-alpine/Dockerfile index d998e424..8447d494 100644 --- a/eclipse-temurin-11-alpine/Dockerfile +++ b/eclipse-temurin-11-alpine/Dockerfile @@ -5,13 +5,13 @@ RUN apk add --no-cache bash procps curl tar # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/eclipse-temurin-11-focal/Dockerfile b/eclipse-temurin-11-focal/Dockerfile index 69716a96..61ddedbf 100644 --- a/eclipse-temurin-11-focal/Dockerfile +++ b/eclipse-temurin-11-focal/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/eclipse-temurin-11/Dockerfile b/eclipse-temurin-11/Dockerfile index 7c10f1fc..2eb14461 100644 --- a/eclipse-temurin-11/Dockerfile +++ b/eclipse-temurin-11/Dockerfile @@ -1,9 +1,9 @@ FROM eclipse-temurin:11-jdk as builder -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" -ARG SHA=400fc5b6d000c158d5ee7937543faa06b6bda8408caa2444a9c947c21472fde0f0b64ac452b8cec8855d528c0335522ed5b6c8f77085811c7e29e1bedbb5daa2 -ARG BASE_URL=https://downloads.apache.org/maven/maven-3/${MAVEN_VERSION}/binaries +ARG SHA=b5ceab2d66ba1a428675f8db6ee96c723a3cc109cc14a2d708e57508090ba243868eca07f33c82ca3cf339eea0dbde8ef2e307b8b41ec7d5f5fc794d96849f0a +ARG BASE_URL=https://downloads.apache.org/maven/maven-4/${MAVEN_VERSION}/binaries ENV MAVEN_HOME /usr/share/maven ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" @@ -18,6 +18,7 @@ RUN set -eux; curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION} for key in \ 6A814B1F869C2BBEAB7CB7271A2A1C94BDE89688 \ 29BEA2A645F2D6CED7FB12E02B172E3E156466E8 \ + 073F7A9345756F3B40CDB99E6C70A3B7599C5736 \ ; do \ gpg --batch --keyserver hkps://keyserver.ubuntu.com --recv-keys "$key" ; \ done; \ @@ -43,7 +44,7 @@ COPY settings-docker.xml /usr/share/maven/ref/ RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/eclipse-temurin-17-alpine/Dockerfile b/eclipse-temurin-17-alpine/Dockerfile index 1e16672a..9e1a35c5 100644 --- a/eclipse-temurin-17-alpine/Dockerfile +++ b/eclipse-temurin-17-alpine/Dockerfile @@ -5,13 +5,13 @@ RUN apk add --no-cache bash procps curl tar # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/eclipse-temurin-17-focal/Dockerfile b/eclipse-temurin-17-focal/Dockerfile index b1d4b018..432c84d2 100644 --- a/eclipse-temurin-17-focal/Dockerfile +++ b/eclipse-temurin-17-focal/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/eclipse-temurin-17/Dockerfile b/eclipse-temurin-17/Dockerfile index 00ff90e0..baab5458 100644 --- a/eclipse-temurin-17/Dockerfile +++ b/eclipse-temurin-17/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/eclipse-temurin-19-alpine/Dockerfile b/eclipse-temurin-19-alpine/Dockerfile new file mode 100644 index 00000000..f20cc0ea --- /dev/null +++ b/eclipse-temurin-19-alpine/Dockerfile @@ -0,0 +1,38 @@ +FROM eclipse-temurin:19-jdk-alpine + +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG USER_HOME_DIR="/root" +ARG SHA=a7ab16e0a816ee0ed0fc4d275994fd7ef0429dec4c8ff5f2a1be84cc82d1f7e6b731dc6de192edb7e7a5e5b9d67d1cd59b1daabea57b3e9c4e05ff78b5adab26 +ARG BASE_URL=https://downloads.apache.org/maven/maven-4/${MAVEN_VERSION}/binaries + +ENV MAVEN_HOME /usr/share/maven +ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" + +RUN set -x \ + && apk add --no-cache bash procps curl tar gnupg \ + && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ + && echo "${SHA} *apache-maven-${MAVEN_VERSION}-bin.tar.gz" | sha512sum -c - \ + && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc \ + && export GNUPGHOME="$(mktemp -d)" \ + && for key in \ + 6A814B1F869C2BBEAB7CB7271A2A1C94BDE89688 \ + 29BEA2A645F2D6CED7FB12E02B172E3E156466E8 \ + 073F7A9345756F3B40CDB99E6C70A3B7599C5736 \ + ; do \ + gpg --batch --keyserver hkps://keyserver.ubuntu.com --recv-keys "$key" ; \ + done \ + && gpg --batch --verify apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc apache-maven-${MAVEN_VERSION}-bin.tar.gz \ + && mkdir -p ${MAVEN_HOME} ${MAVEN_HOME}/ref \ + && tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz -C ${MAVEN_HOME} --strip-components=1 \ + # GNUPGHOME may fail to delete even with -rf + && (rm -rf "$GNUPGHOME" apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc apache-maven-${MAVEN_VERSION}-bin.tar.gz || true) \ + && ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn \ + && apk del gnupg \ + # smoke test + && mvn --version + +COPY mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY settings-docker.xml /usr/share/maven/ref/ + +ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] +CMD ["mvn"] diff --git a/eclipse-temurin-19-focal/Dockerfile b/eclipse-temurin-19-focal/Dockerfile new file mode 100644 index 00000000..1d85825b --- /dev/null +++ b/eclipse-temurin-19-focal/Dockerfile @@ -0,0 +1,40 @@ +FROM eclipse-temurin:19-jdk-focal + +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG USER_HOME_DIR="/root" +ARG SHA=a7ab16e0a816ee0ed0fc4d275994fd7ef0429dec4c8ff5f2a1be84cc82d1f7e6b731dc6de192edb7e7a5e5b9d67d1cd59b1daabea57b3e9c4e05ff78b5adab26 +ARG BASE_URL=https://downloads.apache.org/maven/maven-4/${MAVEN_VERSION}/binaries + +ENV MAVEN_HOME /usr/share/maven +ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" + +RUN set -x \ + && apt-get update \ + && apt-get install -y ca-certificates curl git gnupg dirmngr --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* \ + && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ + && echo "${SHA} *apache-maven-${MAVEN_VERSION}-bin.tar.gz" | sha512sum -c - \ + && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc \ + && export GNUPGHOME="$(mktemp -d)" \ + && for key in \ + 6A814B1F869C2BBEAB7CB7271A2A1C94BDE89688 \ + 29BEA2A645F2D6CED7FB12E02B172E3E156466E8 \ + 073F7A9345756F3B40CDB99E6C70A3B7599C5736 \ + ; do \ + gpg --batch --keyserver hkps://keyserver.ubuntu.com --recv-keys "$key" ; \ + done \ + && gpg --batch --verify apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc apache-maven-${MAVEN_VERSION}-bin.tar.gz \ + && mkdir -p ${MAVEN_HOME} ${MAVEN_HOME}/ref \ + && tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz -C ${MAVEN_HOME} --strip-components=1 \ + # GNUPGHOME may fail to delete even with -rf + && (rm -rf "$GNUPGHOME" apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc apache-maven-${MAVEN_VERSION}-bin.tar.gz || true) \ + && ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn \ + && apt-get remove --purge --autoremove -y gnupg dirmngr \ + # smoke test + && mvn --version + +COPY mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY settings-docker.xml /usr/share/maven/ref/ + +ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] +CMD ["mvn"] diff --git a/eclipse-temurin-19/Dockerfile b/eclipse-temurin-19/Dockerfile new file mode 100644 index 00000000..cac26894 --- /dev/null +++ b/eclipse-temurin-19/Dockerfile @@ -0,0 +1,40 @@ +FROM eclipse-temurin:19-jdk + +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG USER_HOME_DIR="/root" +ARG SHA=a7ab16e0a816ee0ed0fc4d275994fd7ef0429dec4c8ff5f2a1be84cc82d1f7e6b731dc6de192edb7e7a5e5b9d67d1cd59b1daabea57b3e9c4e05ff78b5adab26 +ARG BASE_URL=https://downloads.apache.org/maven/maven-4/${MAVEN_VERSION}/binaries + +ENV MAVEN_HOME /usr/share/maven +ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" + +RUN set -x \ + && apt-get update \ + && apt-get install -y ca-certificates curl git gnupg dirmngr --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* \ + && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ + && echo "${SHA} *apache-maven-${MAVEN_VERSION}-bin.tar.gz" | sha512sum -c - \ + && curl -fsSLO --compressed ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc \ + && export GNUPGHOME="$(mktemp -d)" \ + && for key in \ + 6A814B1F869C2BBEAB7CB7271A2A1C94BDE89688 \ + 29BEA2A645F2D6CED7FB12E02B172E3E156466E8 \ + 073F7A9345756F3B40CDB99E6C70A3B7599C5736 \ + ; do \ + gpg --batch --keyserver hkps://keyserver.ubuntu.com --recv-keys "$key" ; \ + done \ + && gpg --batch --verify apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc apache-maven-${MAVEN_VERSION}-bin.tar.gz \ + && mkdir -p ${MAVEN_HOME} ${MAVEN_HOME}/ref \ + && tar -xzf apache-maven-${MAVEN_VERSION}-bin.tar.gz -C ${MAVEN_HOME} --strip-components=1 \ + # GNUPGHOME may fail to delete even with -rf + && (rm -rf "$GNUPGHOME" apache-maven-${MAVEN_VERSION}-bin.tar.gz.asc apache-maven-${MAVEN_VERSION}-bin.tar.gz || true) \ + && ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn \ + && apt-get remove --purge --autoremove -y gnupg dirmngr \ + # smoke test + && mvn --version + +COPY mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY settings-docker.xml /usr/share/maven/ref/ + +ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] +CMD ["mvn"] diff --git a/eclipse-temurin-20-alpine/Dockerfile b/eclipse-temurin-20-alpine/Dockerfile index 04c38609..3fd4a0bc 100644 --- a/eclipse-temurin-20-alpine/Dockerfile +++ b/eclipse-temurin-20-alpine/Dockerfile @@ -5,13 +5,13 @@ RUN apk add --no-cache bash procps curl tar # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/eclipse-temurin-20/Dockerfile b/eclipse-temurin-20/Dockerfile index bc1e8afc..a92b3fb4 100644 --- a/eclipse-temurin-20/Dockerfile +++ b/eclipse-temurin-20/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/eclipse-temurin-8-alpine/Dockerfile b/eclipse-temurin-8-alpine/Dockerfile index 7b7b0e7e..12ba2665 100644 --- a/eclipse-temurin-8-alpine/Dockerfile +++ b/eclipse-temurin-8-alpine/Dockerfile @@ -5,13 +5,13 @@ RUN apk add --no-cache bash procps curl tar # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/eclipse-temurin-8-focal/Dockerfile b/eclipse-temurin-8-focal/Dockerfile index 73273df8..875e2a41 100644 --- a/eclipse-temurin-8-focal/Dockerfile +++ b/eclipse-temurin-8-focal/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/eclipse-temurin-8/Dockerfile b/eclipse-temurin-8/Dockerfile index 7261a2dd..d9aba4ee 100644 --- a/eclipse-temurin-8/Dockerfile +++ b/eclipse-temurin-8/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/github-action.ps1 b/github-action.ps1 index 81088a12..072cf29f 100644 --- a/github-action.ps1 +++ b/github-action.ps1 @@ -3,7 +3,7 @@ Write-Host "Starting" $dir = $args[0] $username = $args[1] $password = $args[2] -$tags = @('3.9.3', '3.9', '3') +$tags = @('4.0.0-alpha-5', '3.9', '3') # only push from main $ref=$env:GITHUB_REF diff --git a/ibm-semeru-11-focal/Dockerfile b/ibm-semeru-11-focal/Dockerfile index 8507f5af..3f99bd35 100644 --- a/ibm-semeru-11-focal/Dockerfile +++ b/ibm-semeru-11-focal/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/ibm-semeru-17-focal/Dockerfile b/ibm-semeru-17-focal/Dockerfile index e794ea6e..35dbed1a 100644 --- a/ibm-semeru-17-focal/Dockerfile +++ b/ibm-semeru-17-focal/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/ibmjava-8/Dockerfile b/ibmjava-8/Dockerfile index fef74995..019a3764 100644 --- a/ibmjava-8/Dockerfile +++ b/ibmjava-8/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/libericaopenjdk-11-alpine/Dockerfile b/libericaopenjdk-11-alpine/Dockerfile index 831dedb6..b7d12e84 100644 --- a/libericaopenjdk-11-alpine/Dockerfile +++ b/libericaopenjdk-11-alpine/Dockerfile @@ -5,13 +5,13 @@ RUN apk add --no-cache bash procps curl tar # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/libericaopenjdk-11-debian/Dockerfile b/libericaopenjdk-11-debian/Dockerfile index 88b2485d..1c4f86ff 100644 --- a/libericaopenjdk-11-debian/Dockerfile +++ b/libericaopenjdk-11-debian/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/libericaopenjdk-11/Dockerfile b/libericaopenjdk-11/Dockerfile index bedb6892..6706831c 100644 --- a/libericaopenjdk-11/Dockerfile +++ b/libericaopenjdk-11/Dockerfile @@ -3,13 +3,13 @@ FROM bellsoft/liberica-openjdk-centos:11 # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/libericaopenjdk-17-alpine/Dockerfile b/libericaopenjdk-17-alpine/Dockerfile index 478a5254..c8ba0934 100644 --- a/libericaopenjdk-17-alpine/Dockerfile +++ b/libericaopenjdk-17-alpine/Dockerfile @@ -5,13 +5,13 @@ RUN apk add --no-cache bash procps curl tar # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/libericaopenjdk-17-debian/Dockerfile b/libericaopenjdk-17-debian/Dockerfile index add8f6a9..1b35253c 100644 --- a/libericaopenjdk-17-debian/Dockerfile +++ b/libericaopenjdk-17-debian/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/libericaopenjdk-17/Dockerfile b/libericaopenjdk-17/Dockerfile index 2b7c56d2..aa4b4a31 100644 --- a/libericaopenjdk-17/Dockerfile +++ b/libericaopenjdk-17/Dockerfile @@ -3,13 +3,13 @@ FROM bellsoft/liberica-openjdk-centos:17 # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/libericaopenjdk-8-alpine/Dockerfile b/libericaopenjdk-8-alpine/Dockerfile index 9799fe6e..f6312fb9 100644 --- a/libericaopenjdk-8-alpine/Dockerfile +++ b/libericaopenjdk-8-alpine/Dockerfile @@ -5,13 +5,13 @@ RUN apk add --no-cache bash procps curl tar # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/libericaopenjdk-8-debian/Dockerfile b/libericaopenjdk-8-debian/Dockerfile index 5601c1e2..c3d31761 100644 --- a/libericaopenjdk-8-debian/Dockerfile +++ b/libericaopenjdk-8-debian/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/libericaopenjdk-8/Dockerfile b/libericaopenjdk-8/Dockerfile index b21582fc..e4b33ff5 100644 --- a/libericaopenjdk-8/Dockerfile +++ b/libericaopenjdk-8/Dockerfile @@ -3,13 +3,13 @@ FROM bellsoft/liberica-openjdk-centos:8 # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/microsoft-openjdk-11-ubuntu/Dockerfile b/microsoft-openjdk-11-ubuntu/Dockerfile index bf522310..ae7fd0d5 100644 --- a/microsoft-openjdk-11-ubuntu/Dockerfile +++ b/microsoft-openjdk-11-ubuntu/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/microsoft-openjdk-16-ubuntu/Dockerfile b/microsoft-openjdk-16-ubuntu/Dockerfile index d573a2bb..528fd16f 100644 --- a/microsoft-openjdk-16-ubuntu/Dockerfile +++ b/microsoft-openjdk-16-ubuntu/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/microsoft-openjdk-17-ubuntu/Dockerfile b/microsoft-openjdk-17-ubuntu/Dockerfile index dd15e188..4709e521 100644 --- a/microsoft-openjdk-17-ubuntu/Dockerfile +++ b/microsoft-openjdk-17-ubuntu/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/openjdk-11-nanoserver/Dockerfile b/openjdk-11-nanoserver/Dockerfile index ce8161ba..04d31912 100644 --- a/openjdk-11-nanoserver/Dockerfile +++ b/openjdk-11-nanoserver/Dockerfile @@ -19,9 +19,9 @@ ENV ProgramFiles="C:\Program Files" ENV WindowsPATH="C:\Windows\system32;C:\Windows" ARG USER_HOME_DIR="C:/Users/ContainerUser" -ARG MAVEN_VERSION=3.9.3 -ARG SHA=fba80f4bb0429052d558959b1bfbc99984f8cb8ff59a53baae0a0874b71a2601e2805c5e557b7b59d81716a0b4b35d1b2eeccb566c40b23cc575331a4984ef6c -ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG SHA=b49122dd2bc878cee1869f5052cc3dda91b970711d4b10cd19ba1e5842060009e425309c9ad6530cf465bcc36abb6a66543c7e08d47f35fe090d6433382c6aa5 +ARG BASE_URL=https://apache.osuosl.org/maven/maven-4/${MAVEN_VERSION}/binaries RUN Invoke-WebRequest -Uri ${env:BASE_URL}/apache-maven-${env:MAVEN_VERSION}-bin.zip -OutFile ${env:TEMP}/apache-maven.zip ; ` if((Get-FileHash -Algorithm SHA512 -Path ${env:TEMP}/apache-maven.zip).Hash.ToLower() -ne ${env:SHA}) { exit 1 } ; ` diff --git a/openjdk-11-windowsservercore/Dockerfile b/openjdk-11-windowsservercore/Dockerfile index 6e58000e..f17be15a 100644 --- a/openjdk-11-windowsservercore/Dockerfile +++ b/openjdk-11-windowsservercore/Dockerfile @@ -4,9 +4,9 @@ FROM openjdk:11-jdk-windowsservercore-1809 SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] ARG USER_HOME_DIR="C:/Users/ContainerUser" -ARG MAVEN_VERSION=3.9.3 -ARG SHA=fba80f4bb0429052d558959b1bfbc99984f8cb8ff59a53baae0a0874b71a2601e2805c5e557b7b59d81716a0b4b35d1b2eeccb566c40b23cc575331a4984ef6c -ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG SHA=b49122dd2bc878cee1869f5052cc3dda91b970711d4b10cd19ba1e5842060009e425309c9ad6530cf465bcc36abb6a66543c7e08d47f35fe090d6433382c6aa5 +ARG BASE_URL=https://apache.osuosl.org/maven/maven-4/${MAVEN_VERSION}/binaries RUN Invoke-WebRequest -Uri ${env:BASE_URL}/apache-maven-${env:MAVEN_VERSION}-bin.zip -OutFile ${env:TEMP}/apache-maven.zip ; ` if((Get-FileHash -Algorithm SHA512 -Path ${env:TEMP}/apache-maven.zip).Hash.ToLower() -ne ${env:SHA}) { exit 1 } ; ` diff --git a/openjdk-8-nanoserver/Dockerfile b/openjdk-8-nanoserver/Dockerfile index dc35d535..381092fb 100644 --- a/openjdk-8-nanoserver/Dockerfile +++ b/openjdk-8-nanoserver/Dockerfile @@ -19,9 +19,9 @@ ENV ProgramFiles="C:\Program Files" ENV WindowsPATH="C:\Windows\system32;C:\Windows" ARG USER_HOME_DIR="C:/Users/ContainerUser" -ARG MAVEN_VERSION=3.9.3 -ARG SHA=fba80f4bb0429052d558959b1bfbc99984f8cb8ff59a53baae0a0874b71a2601e2805c5e557b7b59d81716a0b4b35d1b2eeccb566c40b23cc575331a4984ef6c -ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG SHA=b49122dd2bc878cee1869f5052cc3dda91b970711d4b10cd19ba1e5842060009e425309c9ad6530cf465bcc36abb6a66543c7e08d47f35fe090d6433382c6aa5 +ARG BASE_URL=https://apache.osuosl.org/maven/maven-4/${MAVEN_VERSION}/binaries RUN Invoke-WebRequest -Uri ${env:BASE_URL}/apache-maven-${env:MAVEN_VERSION}-bin.zip -OutFile ${env:TEMP}/apache-maven.zip ; ` if((Get-FileHash -Algorithm SHA512 -Path ${env:TEMP}/apache-maven.zip).Hash.ToLower() -ne ${env:SHA}) { exit 1 } ; ` diff --git a/openjdk-8-windowsservercore/Dockerfile b/openjdk-8-windowsservercore/Dockerfile index 3e43d00f..aef2f1f6 100644 --- a/openjdk-8-windowsservercore/Dockerfile +++ b/openjdk-8-windowsservercore/Dockerfile @@ -4,9 +4,9 @@ FROM openjdk:8-jdk-windowsservercore-1809 SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] ARG USER_HOME_DIR="C:/Users/ContainerUser" -ARG MAVEN_VERSION=3.9.3 -ARG SHA=fba80f4bb0429052d558959b1bfbc99984f8cb8ff59a53baae0a0874b71a2601e2805c5e557b7b59d81716a0b4b35d1b2eeccb566c40b23cc575331a4984ef6c -ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries +ARG MAVEN_VERSION=4.0.0-alpha-5 +ARG SHA=b49122dd2bc878cee1869f5052cc3dda91b970711d4b10cd19ba1e5842060009e425309c9ad6530cf465bcc36abb6a66543c7e08d47f35fe090d6433382c6aa5 +ARG BASE_URL=https://apache.osuosl.org/maven/maven-4/${MAVEN_VERSION}/binaries RUN Invoke-WebRequest -Uri ${env:BASE_URL}/apache-maven-${env:MAVEN_VERSION}-bin.zip -OutFile ${env:TEMP}/apache-maven.zip ; ` if((Get-FileHash -Algorithm SHA512 -Path ${env:TEMP}/apache-maven.zip).Hash.ToLower() -ne ${env:SHA}) { exit 1 } ; ` diff --git a/sapmachine-11/Dockerfile b/sapmachine-11/Dockerfile index d069b549..5f826eb9 100644 --- a/sapmachine-11/Dockerfile +++ b/sapmachine-11/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/sapmachine-17/Dockerfile b/sapmachine-17/Dockerfile index 4651d29b..0747e1c9 100644 --- a/sapmachine-17/Dockerfile +++ b/sapmachine-17/Dockerfile @@ -7,13 +7,13 @@ RUN apt-get update \ # common for all images ENV MAVEN_HOME /usr/share/maven -COPY --from=maven:3.9.3-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh -COPY --from=maven:3.9.3-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:4.0.0-alpha-5-eclipse-temurin-11 /usr/share/maven/ref/settings-docker.xml /usr/share/maven/ref/settings-docker.xml RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn -ARG MAVEN_VERSION=3.9.3 +ARG MAVEN_VERSION=4.0.0-alpha-5 ARG USER_HOME_DIR="/root" ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" diff --git a/tests/maven.Tests.ps1 b/tests/maven.Tests.ps1 index 1ffab5c5..03c66d5e 100644 --- a/tests/maven.Tests.ps1 +++ b/tests/maven.Tests.ps1 @@ -60,7 +60,7 @@ Describe "$SUT_TAG settings.xml is setup" { Describe "$SUT_TAG repository is created" { It 'created repository' { - $exitCode, $stdout, $stderr = Run-Program -Cmd "docker.exe" -Params "run --rm ${SUT_TEST_IMAGE}:${SUT_TAG} if(Test-Path C:/Users/ContainerUser/.m2/repository/junit/junit/4.13.1/junit-4.13.1.jar) { exit 0 } else {exit 1 }" + $exitCode, $stdout, $stderr = Run-Program -Cmd "docker.exe" -Params "run --rm ${SUT_TEST_IMAGE}:${SUT_TAG} if(Test-Path C:/Users/ContainerUser/.m2/repository/org/junit/junit-bom/5.7.2/junit-bom-5.7.2.pom) { exit 0 } else {exit 1 }" $exitCode | Should -Be 0 } } diff --git a/tests/tests.bats b/tests/tests.bats index af5842a0..41799f46 100644 --- a/tests/tests.bats +++ b/tests/tests.bats @@ -54,7 +54,7 @@ base_image=eclipse-temurin-11 } @test "$SUT_TAG repository is created" { - run docker run --rm $SUT_TEST_IMAGE:$SUT_TAG test -f /root/.m2/repository/junit/junit/4.13.1/junit-4.13.1.jar + run docker run --rm $SUT_TEST_IMAGE:$SUT_TAG test -f /root/.m2/repository/org/junit/junit-bom/5.7.2/junit-bom-5.7.2.pom assert_success }