diff --git a/.github/workflows/azulzulu-8-alpine.yml b/.github/workflows/azulzulu-8-alpine.yml new file mode 100644 index 00000000..f21b5766 --- /dev/null +++ b/.github/workflows/azulzulu-8-alpine.yml @@ -0,0 +1,32 @@ +name: azulzulu-8-alpine + +on: + push: + branches: + - main + paths: + - "azulzulu-8-alpine/**" + - .github/workflows/azulzulu-8-alpine.yml + - .github/workflows/_template.yml + - common.sh + - tags-for-dir.sh + - "tests/**" + - "!tests/*.ps*" + - "!tests/*.windows" + pull_request: + paths: + - "azulzulu-8-alpine/**" + - .github/workflows/azulzulu-8-alpine.yml + - .github/workflows/_template.yml + - common.sh + - tags-for-dir.sh + - "tests/**" + - "!tests/*.ps*" + - "!tests/*.windows" + +jobs: + build: + uses: ./.github/workflows/_template.yml + with: + directory: azulzulu-8-alpine + secrets: inherit diff --git a/.github/workflows/azulzulu-8.yml b/.github/workflows/azulzulu-8.yml new file mode 100644 index 00000000..96d10310 --- /dev/null +++ b/.github/workflows/azulzulu-8.yml @@ -0,0 +1,32 @@ +name: azulzulu-8 + +on: + push: + branches: + - main + paths: + - "azulzulu-8/**" + - .github/workflows/azulzulu-8.yml + - .github/workflows/_template.yml + - common.sh + - tags-for-dir.sh + - "tests/**" + - "!tests/*.ps*" + - "!tests/*.windows" + pull_request: + paths: + - "azulzulu-8/**" + - .github/workflows/azulzulu-8.yml + - .github/workflows/_template.yml + - common.sh + - tags-for-dir.sh + - "tests/**" + - "!tests/*.ps*" + - "!tests/*.windows" + +jobs: + build: + uses: ./.github/workflows/_template.yml + with: + directory: azulzulu-8 + secrets: inherit diff --git a/README.md b/README.md index 5bb59903..0719749c 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,8 @@ See Docker Hub or GitHub Container Registry for an updated list of tags * [sapmachine-21](https://github.com/carlossg/docker-maven/blob/main/sapmachine-21/) Only under `csanchez/maven` and `ghcr.io/carlossg/maven`: - +* [azulzulu-8](https://github.com/carlossg/docker-maven/blob/main/azulzulu-8/Dockerfile) +* [azulzulu-8-alpine](https://github.com/carlossg/docker-maven/blob/main/azulzulu-8-alpine/Dockerfile) * [azulzulu-11](https://github.com/carlossg/docker-maven/blob/main/azulzulu-11/Dockerfile) * [azulzulu-11-alpine](https://github.com/carlossg/docker-maven/blob/main/azulzulu-11-alpine/Dockerfile) * [azulzulu-17](https://github.com/carlossg/docker-maven/blob/main/azulzulu-17/Dockerfile) @@ -213,6 +214,8 @@ Some come from the parent images and some are installed in this image for backwa | amazoncorretto-21 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | amazoncorretto-21-al2023 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | ✔️ | | | amazoncorretto-21-debian | | | ✔️ | ✔️ | ✔️ | ✔️ | | | | +| azulzulu-8 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | +| azulzulu-8-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | azulzulu-11 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | azulzulu-11-alpine | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | | azulzulu-17 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | | diff --git a/azulzulu-8-alpine/Dockerfile b/azulzulu-8-alpine/Dockerfile new file mode 100644 index 00000000..e56a535f --- /dev/null +++ b/azulzulu-8-alpine/Dockerfile @@ -0,0 +1,19 @@ +FROM azul/zulu-openjdk-alpine:8 + +RUN apk add --no-cache bash procps curl tar + +# common for all images +ENV MAVEN_HOME /usr/share/maven + +COPY --from=maven:3.9.6-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:3.9.6-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.6 +ARG USER_HOME_DIR="/root" +ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" + +ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] +CMD ["mvn"] diff --git a/azulzulu-8/Dockerfile b/azulzulu-8/Dockerfile new file mode 100644 index 00000000..80e3d76b --- /dev/null +++ b/azulzulu-8/Dockerfile @@ -0,0 +1,21 @@ +FROM azul/zulu-openjdk:8 + +RUN apt-get update \ + && apt-get install -y ca-certificates curl --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +# common for all images +ENV MAVEN_HOME /usr/share/maven + +COPY --from=maven:3.9.6-eclipse-temurin-11 ${MAVEN_HOME} ${MAVEN_HOME} +COPY --from=maven:3.9.6-eclipse-temurin-11 /usr/local/bin/mvn-entrypoint.sh /usr/local/bin/mvn-entrypoint.sh +COPY --from=maven:3.9.6-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.6 +ARG USER_HOME_DIR="/root" +ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" + +ENTRYPOINT ["/usr/local/bin/mvn-entrypoint.sh"] +CMD ["mvn"]