Skip to content

Commit

Permalink
Added support JDK 11 with UBI 9
Browse files Browse the repository at this point in the history
  • Loading branch information
voltor committed May 15, 2024
1 parent 96dadbd commit f209af2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
matrix:
include:
- jdk-version: 11
dist: centos7
dist: ubi9-minimal
- jdk-version: 17
dist: ubi9-minimal
- jdk-version: 21
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# By default, build on JDK 17 on UBI 9.
# By default, build on JDK 11 on UBI 9.
ARG jdk=21
# Red Hat UBI 9 (ubi9-minimal) should be used on JDK 20 and later.
# Red Hat UBI 9 (ubi9-minimal) should be used on JDK 11 and later.
ARG dist=ubi9-minimal
FROM eclipse-temurin:${jdk}-${dist}

Expand Down
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,9 @@ Then you can build the image:

docker build --tag=jboss/wildfly-admin .

Or for JDK 11:
Or for JDK 11, JDK 17+ :

docker build --build-arg dist=centos7 --build-arg jdk=11 --tag=jboss/wildfly-admin .

Or for JDK 20:

docker build --build-arg dist=ubi9-minimal --build-arg jdk=20 --tag=jboss/wildfly-admin .
docker build --build-arg dist=ubi9-minimal --build-arg jdk=11 --tag=jboss/wildfly-admin .

Run it:

Expand All @@ -128,7 +124,7 @@ You don't need to do this on your own, because we prepared a trusted build for t

## Image internals [updated May 15, 2023]

This image extends the [`eclipse-temurin`](https://hub.docker.com/_/eclipse-temurin) JDK. Starting with JDK 17, this base OS used is [`ubi9-minimal`](https://catalog.redhat.com/software/containers/ubi9-minimal/61832888c0d15aff4912fe0d). Earlier versions, including the LTS JDK 11, are based on [`centos7`](https://hub.docker.com/_/centos). A UBI 9 image to validate the build arguments provided.
This image extends the [`eclipse-temurin`](https://hub.docker.com/_/eclipse-temurin) JDK. Starting with JDK 11, this base OS used is [`ubi9-minimal`](https://catalog.redhat.com/software/containers/ubi9-minimal/61832888c0d15aff4912fe0d). A UBI 9 image to validate the build arguments provided.

This image installs the wildfly server and sets up the JBoss environment similar to [`jboss/base`](https://github.com/jboss-dockerfiles/base) image. Please refer to the README.md for selected images and more info.

Expand Down

0 comments on commit f209af2

Please sign in to comment.