Skip to content

Commit

Permalink
feat: Add Java 21 on Jammy (Ubuntu 22.04 LTS)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsbasjes authored and carlossg committed Dec 21, 2023
1 parent 16db711 commit 66d4af0
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/eclipse-temurin-21-jammy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: eclipse-temurin-21-jammy

on:
push:
branches:
- main
paths:
- "eclipse-temurin-21-jammy/**"
- .github/workflows/eclipse-temurin-21-jammy.yml
- .github/workflows/_template.yml
- common.sh
- tags-for-dir.sh
- "tests/**"
- "!tests/*.ps*"
- "!tests/*.windows"
pull_request:
paths:
- "eclipse-temurin-21-jammy/**"
- .github/workflows/eclipse-temurin-21-jammy.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: eclipse-temurin-21-jammy
secrets: inherit
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ See Docker Hub or GitHub Container Registry for an updated list of tags
* [eclipse-temurin-17-focal](https://github.com/carlossg/docker-maven/blob/main/eclipse-temurin-17-focal/Dockerfile)
* [eclipse-temurin-21](https://github.com/carlossg/docker-maven/blob/main/eclipse-temurin-21/Dockerfile)
* [eclipse-temurin-21-alpine](https://github.com/carlossg/docker-maven/blob/main/eclipse-temurin-21-alpine/Dockerfile)
* [eclipse-temurin-21-jammy](https://github.com/carlossg/docker-maven/blob/main/eclipse-temurin-21-jammy/Dockerfile)
* [ibm-semeru-11-focal](https://github.com/carlossg/docker-maven/blob/main/ibm-semeru-11-focal/Dockerfile)
* [ibm-semeru-17-focal](https://github.com/carlossg/docker-maven/blob/main/ibm-semeru-17-focal/Dockerfile)
* [ibmjava-8](https://github.com/carlossg/docker-maven/blob/main/ibmjava-8/Dockerfile)
Expand Down
21 changes: 21 additions & 0 deletions eclipse-temurin-21-jammy/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM eclipse-temurin:21-jdk-jammy

RUN apt-get update \
&& apt-get install -y ca-certificates curl git --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 66d4af0

Please sign in to comment.