Skip to content

Commit ab4c425

Browse files
committed
Remove dockerfiles, fix 17 buildconfig, add imagestream creation script
1 parent b806996 commit ab4c425

File tree

5 files changed

+10
-28
lines changed

5 files changed

+10
-28
lines changed

templates/jlink/jlink-builder/Dockerfile-jdk-11

Lines changed: 0 additions & 9 deletions
This file was deleted.

templates/jlink/jlink-builder/Dockerfile-jdk-17

Lines changed: 0 additions & 9 deletions
This file was deleted.

templates/jlink/jlink-builder/Dockerfile-jdk-21

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
eval $(crc oc-env)
2+
VERSION=11
3+
4+
# Buildconfigs attempt to push to ubi9-openjdk-$VERSION-jmods, this needs to exist first
5+
oc create imagestream ubi9-openjdk-$VERSION-jlink
6+
7+
# Assuming the buildconfig exists, we can now create the buildconfig
8+
oc create -f jdk-$VERSION-buildconfig.yaml
9+
oc start-build jlink-builder-jdk-$VERSION

templates/jlink/jlink-builder/jdk-17-buildconfig.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
uri: https://github.com/jmtd/quarkus-quickstarts.git
1212
contextDir: getting-started
1313
dockerfile: |
14-
FROM registry.access.redhat.com/ubi9/openjdk-11 AS ubi9-openjdk-17-jmods
14+
FROM registry.access.redhat.com/ubi9/openjdk-17 AS ubi9-openjdk-17-jmods
1515
USER 0
1616
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y java-17-openjdk-jmods
1717
strategy:

0 commit comments

Comments
 (0)