Skip to content

Commit b806996

Browse files
committed
Initial dockerfiles and buildconfigs for JDK11, 17, 21. TODO: Script to run a build on each in an openshift environment
1 parent 5f28ed9 commit b806996

File tree

6 files changed

+94
-0
lines changed

6 files changed

+94
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Stage 1 of the multi-stage build for the Jlink workflow (OPENJDK-2686)
2+
# Goal: Builder image based off of the OpenJDK builder image with the jmods RPM installed
3+
FROM registry.access.redhat.com/ubi9/openjdk-11 AS ubi9-openjdk11-jmods
4+
USER 0
5+
RUN microdnf --setopt=install_weak_deps=0 \
6+
--setopt=tsflags=nodocs \
7+
install \
8+
-y \
9+
java-11-openjdk-jmods
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Stage 1 of the multi-stage build for the Jlink workflow (OPENJDK-2686)
2+
# Goal: Builder image based off of the OpenJDK builder image with the jmods RPM installed
3+
FROM registry.access.redhat.com/ubi9/openjdk-17 AS ubi9-openjdk17-jmods
4+
USER 0
5+
RUN microdnf --setopt=install_weak_deps=0 \
6+
--setopt=tsflags=nodocs \
7+
install \
8+
-y \
9+
java-17-openjdk-jmods
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Stage 1 of the multi-stage build for the Jlink workflow (OPENJDK-2686)
2+
# Goal: Builder image based off of the OpenJDK builder image with the jmods RPM installed
3+
FROM registry.access.redhat.com/ubi9/openjdk-21 AS ubi9-openjdk21-jmods
4+
USER 0
5+
RUN microdnf --setopt=install_weak_deps=0 \
6+
--setopt=tsflags=nodocs \
7+
install \
8+
-y \
9+
java-11-openjdk-jmods
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: build.openshift.io/v1
2+
kind: BuildConfig
3+
metadata:
4+
name: jlink-builder-jdk-11
5+
labels:
6+
app: jlink-builder-jdk-11
7+
spec:
8+
source:
9+
type: Git
10+
git:
11+
uri: https://github.com/jmtd/quarkus-quickstarts.git
12+
contextDir: getting-started
13+
dockerfile: |
14+
FROM registry.access.redhat.com/ubi9/openjdk-11 AS ubi9-openjdk-11-jmods
15+
USER 0
16+
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y java-11-openjdk-jmods
17+
strategy:
18+
type: Docker
19+
output:
20+
to:
21+
kind: ImageStreamTag
22+
name: ubi9-openjdk-11-jlink:latest
23+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: build.openshift.io/v1
2+
kind: BuildConfig
3+
metadata:
4+
name: jlink-builder-jdk-17
5+
labels:
6+
app: jlink-builder-jdk-17
7+
spec:
8+
source:
9+
type: Git
10+
git:
11+
uri: https://github.com/jmtd/quarkus-quickstarts.git
12+
contextDir: getting-started
13+
dockerfile: |
14+
FROM registry.access.redhat.com/ubi9/openjdk-11 AS ubi9-openjdk-17-jmods
15+
USER 0
16+
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y java-17-openjdk-jmods
17+
strategy:
18+
type: Docker
19+
output:
20+
to:
21+
kind: ImageStreamTag
22+
name: ubi9-openjdk-17-jlink:latest
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: build.openshift.io/v1
2+
kind: BuildConfig
3+
metadata:
4+
name: jlink-builder-jdk-21
5+
labels:
6+
app: jlink-builder-jdk-21
7+
spec:
8+
source:
9+
type: Git
10+
git:
11+
uri: https://github.com/jmtd/quarkus-quickstarts.git
12+
contextDir: getting-started
13+
dockerfile: |
14+
FROM registry.access.redhat.com/ubi9/openjdk-21 AS ubi9-openjdk-21-jmods
15+
USER 0
16+
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y java-21-openjdk-jmods
17+
strategy:
18+
type: Docker
19+
output:
20+
to:
21+
kind: ImageStreamTag
22+
name: ubi9-openjdk-21-jlink:latest

0 commit comments

Comments
 (0)