Skip to content

Commit

Permalink
Merge branch 'main' into maven-4
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossg committed Jul 30, 2024
2 parents 0323262 + 5dbedd3 commit eeae919
Show file tree
Hide file tree
Showing 40 changed files with 290 additions and 337 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
uses: sigstore/[email protected]

- name: Set up QEMU
uses: docker/setup-qemu-action@v3.0.0
uses: docker/setup-qemu-action@v3.2.0
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3.3.0
uses: docker/setup-buildx-action@v3.5.0

- name: Test
run: bats tests
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/libericaopenjdk-17.yml

This file was deleted.

12 changes: 6 additions & 6 deletions Dockerfile-template
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# common for all images
LABEL org.opencontainers.image.title "Apache Maven"
LABEL org.opencontainers.image.source https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.url https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.description "Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."
LABEL org.opencontainers.image.title="Apache Maven"
LABEL org.opencontainers.image.source=https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.url=https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.description="Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."

ENV MAVEN_HOME /usr/share/maven
ENV MAVEN_HOME=/usr/share/maven

COPY --from=ghcr.io/carlossg/maven:4.0.0-beta-3-eclipse-temurin-17 ${MAVEN_HOME} ${MAVEN_HOME}
COPY --from=ghcr.io/carlossg/maven:4.0.0-beta-3-eclipse-temurin-17 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh
Expand All @@ -14,7 +14,7 @@ RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn

ARG MAVEN_VERSION=4.0.0-beta-3
ARG USER_HOME_DIR="/root"
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
ENV MAVEN_CONFIG="$USER_HOME_DIR/.m2"

ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
CMD ["mvn"]
72 changes: 36 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ Only under `csanchez/maven` and `ghcr.io/carlossg/maven`:
* [azulzulu-21-alpine](https://github.com/carlossg/docker-maven/blob/main/azulzulu-21-alpine/Dockerfile)
* [graalvm-community-17](https://github.com/carlossg/docker-maven/blob/main/graalvm-community-17/)
* [graalvm-community-21](https://github.com/carlossg/docker-maven/blob/main/graalvm-community-21/)
* [libericaopenjdk-17](https://github.com/carlossg/docker-maven/blob/main/libericaopenjdk-17/Dockerfile)
* [libericaopenjdk-17-alpine](https://github.com/carlossg/docker-maven/blob/main/libericaopenjdk-17-alpine/Dockerfile)
* [libericaopenjdk-17-debian](https://github.com/carlossg/docker-maven/blob/main/libericaopenjdk-17-debian/Dockerfile)
* [microsoft-openjdk-11-ubuntu](https://github.com/carlossg/docker-maven/blob/main/microsoft-openjdk-11-ubuntu/Dockerfile)
* [microsoft-openjdk-17-ubuntu](https://github.com/carlossg/docker-maven/blob/main/microsoft-openjdk-17-ubuntu/Dockerfile)
* [microsoft-openjdk-21-ubuntu](https://github.com/carlossg/docker-maven/blob/main/microsoft-openjdk-21-ubuntu/Dockerfile)
* [oracle-graalvm-17](https://github.com/carlossg/docker-maven/blob/main/oracle-graalvm-17/)
Expand Down Expand Up @@ -172,40 +173,39 @@ Some come from the parent images and some are installed in this image for backwa

| | git | curl | tar | bash | which | gzip | procps | gpg | ssh |
|-------------------------------|-----|------|-----|------|-------|------|--------|-----|-----|
| amazoncorretto-17 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | |
| amazoncorretto-17-al2023 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | |
| amazoncorretto-17-debian | | | ✔️ | ✔️ | ✔️ | ✔️ | | | |
| amazoncorretto-21 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | |
| amazoncorretto-21-al2023 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | |
| amazoncorretto-21-debian | | | ✔️ | ✔️ | ✔️ | ✔️ | | | |
| azulzulu-17 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| azulzulu-17-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| azulzulu-21 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| azulzulu-21-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| eclipse-temurin-17 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| eclipse-temurin-17-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| eclipse-temurin-17-focal | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| eclipse-temurin-21 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| eclipse-temurin-21-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| eclipse-temurin-22-jammy | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| eclipse-temurin-22 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| eclipse-temurin-22-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| eclipse-temurin-22-jammy | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| graalvm-community-17 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | |
| graalvm-community-21 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | |
| ibm-semeru-17-focal | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| ibm-semeru-21-jammy | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| libericaopenjdk-17 | | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ | ✔️ | |
| libericaopenjdk-17-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| libericaopenjdk-17-debian | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | |
| microsoft-openjdk-17-ubuntu | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
| microsoft-openjdk-21-ubuntu | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | |
| oracle-graalvm-17 | | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | |
| oracle-graalvm-21 | | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | |
| sapmachine-11 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| sapmachine-17 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| sapmachine-21 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| sapmachine-22 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
| amazoncorretto-17 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ |
| amazoncorretto-17-al2023 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ |
| amazoncorretto-17-debian | | | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ |
| amazoncorretto-21 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ |
| amazoncorretto-21-al2023 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ |
| amazoncorretto-21-debian | | | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ |
| azulzulu-17 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| azulzulu-17-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| azulzulu-21 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| azulzulu-21-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| eclipse-temurin-17 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| eclipse-temurin-17-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| eclipse-temurin-17-focal | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| eclipse-temurin-21 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| eclipse-temurin-21-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| eclipse-temurin-22-jammy | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| eclipse-temurin-22 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| eclipse-temurin-22-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| eclipse-temurin-22-jammy | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| graalvm-community-17 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ |
| graalvm-community-21 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | ✔️ |
| ibm-semeru-17-focal | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| ibm-semeru-21-jammy | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| libericaopenjdk-17-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| libericaopenjdk-17-debian | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | ✔️ |
| microsoft-openjdk-17-ubuntu | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| microsoft-openjdk-21-ubuntu | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ |
| oracle-graalvm-17 | | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | ✔️ |
| oracle-graalvm-21 | | ✔️ | ✔️ | ✔️ | | ✔️ | | ✔️ | ✔️ |
| sapmachine-11 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| sapmachine-17 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| sapmachine-21 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |
| sapmachine-22 | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ |



Expand Down Expand Up @@ -294,7 +294,7 @@ View [license information](https://www.apache.org/licenses/) for the software co
If you have any problems with or questions about this image, please contact us
through a [GitHub issue](https://github.com/carlossg/docker-maven/issues).

You can also reach many of the official image maintainers via the `#docker-library` IRC channel on Freenode.
You can also reach many of the official image maintainers via the `#docker-library` IRC channel on [Libera.Chat (web)](https://web.libera.chat/#docker-library) or in your favorite IRC client.

## Contributing

Expand Down
13 changes: 7 additions & 6 deletions amazoncorretto-17-al2023/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
FROM amazoncorretto:17-al2023

RUN yum install -y tar which gzip findutils # TODO remove
RUN yum install -y openssh-clients

# common for all images
LABEL org.opencontainers.image.title "Apache Maven"
LABEL org.opencontainers.image.source https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.url https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.description "Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."
LABEL org.opencontainers.image.title="Apache Maven"
LABEL org.opencontainers.image.source=https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.url=https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.description="Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."

ENV MAVEN_HOME /usr/share/maven
ENV MAVEN_HOME=/usr/share/maven

COPY --from=ghcr.io/carlossg/maven:4.0.0-beta-3-eclipse-temurin-17 ${MAVEN_HOME} ${MAVEN_HOME}
COPY --from=ghcr.io/carlossg/maven:4.0.0-beta-3-eclipse-temurin-17 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh
Expand All @@ -18,7 +19,7 @@ RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn

ARG MAVEN_VERSION=4.0.0-beta-3
ARG USER_HOME_DIR="/root"
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
ENV MAVEN_CONFIG="$USER_HOME_DIR/.m2"

ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
CMD ["mvn"]
17 changes: 9 additions & 8 deletions amazoncorretto-17-debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
FROM debian:bookworm-slim

# install corretto after verifying that the key is the one we expect.
# and keep openssh client
RUN apt-get update \
&& apt-get install -y curl gnupg \
&& apt-get install -y curl gnupg openssh-client \
&& export GNUPGHOME="$(mktemp -d)" \
&& curl -fL https://apt.corretto.aws/corretto.key | gpg --batch --import \
&& gpg --batch --export '6DC3636DAE534049C8B94623A122542AB04F24E3' > /usr/share/keyrings/corretto.gpg \
Expand All @@ -16,15 +17,15 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

# set JAVA_HOME manually since nothing else will set it
ENV JAVA_HOME "/usr/lib/jvm/java-17-amazon-corretto"
ENV JAVA_HOME="/usr/lib/jvm/java-17-amazon-corretto"

# common for all images
LABEL org.opencontainers.image.title "Apache Maven"
LABEL org.opencontainers.image.source https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.url https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.description "Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."
LABEL org.opencontainers.image.title="Apache Maven"
LABEL org.opencontainers.image.source=https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.url=https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.description="Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."

ENV MAVEN_HOME /usr/share/maven
ENV MAVEN_HOME=/usr/share/maven

COPY --from=ghcr.io/carlossg/maven:4.0.0-beta-3-eclipse-temurin-17 ${MAVEN_HOME} ${MAVEN_HOME}
COPY --from=ghcr.io/carlossg/maven:4.0.0-beta-3-eclipse-temurin-17 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh
Expand All @@ -34,7 +35,7 @@ RUN ln -s ${MAVEN_HOME}/bin/mvn /usr/bin/mvn

ARG MAVEN_VERSION=4.0.0-beta-3
ARG USER_HOME_DIR="/root"
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
ENV MAVEN_CONFIG="$USER_HOME_DIR/.m2"

ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"]
CMD ["mvn"]
16 changes: 8 additions & 8 deletions amazoncorretto-17-windowsservercore/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2019

LABEL org.opencontainers.image.title "Apache Maven"
LABEL org.opencontainers.image.source https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.url https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.description "Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."
LABEL org.opencontainers.image.title="Apache Maven"
LABEL org.opencontainers.image.source=https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.url=https://github.com/carlossg/docker-maven
LABEL org.opencontainers.image.description="Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information."

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

ARG zip=amazon-corretto-17-x64-windows-jdk.zip
ARG uri=https://corretto.aws/downloads/latest
ARG hash=e785e2cbfedb33399ddde232bf3e2e8cf1a3cc3c811c5bbd2989fc6d6bea8c47
ARG hash=df6cb295eb17ba7e898f99657da977bb96389c5e97de94f3a06053650d7c4e16

RUN Invoke-WebRequest -Uri $('{0}/{1}' -f $env:uri,$env:zip) -OutFile C:/$env:zip ; `
if((Get-FileHash C:/$env:zip -Algorithm SHA256).Hash.ToLower() -ne $env:hash) { exit 1 } ; `
Expand-Archive -Path C:/$env:zip -Destination C:/ProgramData ; `
Remove-Item C:/${env:zip}

ENV JAVA_HOME=C:/ProgramData/jdk17.0.11_9
ENV JAVA_HOME=C:/ProgramData/jdk17.0.12_7

ARG USER_HOME_DIR="C:/Users/ContainerUser"
ARG MAVEN_VERSION=4.0.0-beta-3
Expand All @@ -31,8 +31,8 @@ RUN Invoke-WebRequest -Uri ${env:BASE_URL}/apache-maven-${env:MAVEN_VERSION}-bin
New-Item -ItemType Directory -Path C:/ProgramData/Maven/Reference | Out-Null ; `
Remove-Item ${env:TEMP}/apache-maven.zip

ENV MAVEN_HOME C:/ProgramData/Maven
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
ENV MAVEN_HOME=C:/ProgramData/Maven
ENV MAVEN_CONFIG="$USER_HOME_DIR/.m2"

COPY mvn-entrypoint.ps1 C:/ProgramData/Maven/mvn-entrypoint.ps1
COPY settings-docker.xml C:/ProgramData/Maven/Reference/settings-docker.xml
Expand Down
Loading

0 comments on commit eeae919

Please sign in to comment.