Skip to content

Commit

Permalink
feat: Support azulzulu jdk 8. (#442)
Browse files Browse the repository at this point in the history
* Added Dockerfiles for azulzulu8.

---------

Co-authored-by: Phaniteja <[email protected]>
Co-authored-by: Carlos Sanchez <[email protected]>
  • Loading branch information
3 people authored Jan 26, 2024
1 parent 77c76c5 commit 0f810b1
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/azulzulu-8-alpine.yml
Original file line number Diff line number Diff line change
@@ -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
32 changes: 32 additions & 0 deletions .github/workflows/azulzulu-8.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 | | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | | |
Expand Down
19 changes: 19 additions & 0 deletions azulzulu-8-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
21 changes: 21 additions & 0 deletions azulzulu-8/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 0f810b1

Please sign in to comment.