Skip to content

Commit bd80d12

Browse files
authored
Merge pull request #474 from Josh-Matsuoka/jlink-stage-2
OPENJDK-2734: Stage 2 initial implementation
2 parents a859973 + 0970d20 commit bd80d12

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

templates/jlink/jlink-builder/jlink-builder-template.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ parameters:
1010
name: JDK_VERSION
1111
value: "11"
1212
required: true
13+
- description: Application to run the jlink workflow on
14+
name: APPLICATION
15+
required: true
16+
- description: Git Ref to run the jlink workflow on
17+
name: REF
18+
required: true
19+
- description: Context Dir to use for the jlink workflow
20+
name: CONTEXT_DIR
21+
required: true
1322
objects:
1423
- apiVersion: image.openshift.io/v1
1524
kind: ImageStream
@@ -49,3 +58,38 @@ objects:
4958
to:
5059
kind: ImageStreamTag
5160
name: ubi9-openjdk-${JDK_VERSION}-jlink:latest
61+
- apiVersion: image.openshift.io/v1
62+
kind: ImageStream
63+
metadata:
64+
name: intermediate
65+
spec:
66+
lookupPolicy:
67+
local: false
68+
- apiVersion: build.openshift.io/v1
69+
kind: BuildConfig
70+
metadata:
71+
name: jlink-s2i-jdk-${JDK_VERSION}
72+
labels:
73+
app: jlink-s2i-jdk-${JDK_VERSION}
74+
spec:
75+
source:
76+
type: Git
77+
git:
78+
uri: ${APPLICATION}
79+
ref: ${REF}
80+
contextDir: ${CONTEXT_DIR}
81+
strategy:
82+
sourceStrategy:
83+
from:
84+
kind: ImageStreamTag
85+
name: ubi9-openjdk-${JDK_VERSION}-jlink:latest # Output Imagestream for Stage 1
86+
pullPolicy: Always
87+
env:
88+
- name: S2I_ENABLE_JLINK
89+
value: "true"
90+
- name: LOGGING_SCRIPT_DEBUG
91+
value: "true"
92+
output:
93+
to:
94+
kind: ImageStreamTag
95+
name: intermediate:latest

0 commit comments

Comments
 (0)