Skip to content

Commit 8d6cfea

Browse files
committed
Add ports to readme, fix Service
1 parent 040ddca commit 8d6cfea

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

templates/jlink/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,17 @@ Some suitable test values for the parameters are
5757
* REF: master
5858
* CONTEXT_DIR: quarkus-quickstarts/getting-started-3.9.2-uberjar
5959
* APPNAME: quarkus-quickstart
60+
* TARGET_PORT: 8080
61+
* SERVICE_PORT: 8080
6062

6163
oc process \
6264
-p JDK_VERSION=17 \
6365
-p APP_URI=https://github.com/jboss-container-images/openjdk-test-applications \
6466
-p REF=master \
6567
-p CONTEXT_DIR=quarkus-quickstarts/getting-started-3.9.2-uberjar \
6668
-p APPNAME=quarkus-quickstart \
69+
-p TARGET_PORT=8080 \
70+
-p SERVICE_PORT=8080 \
6771
templates/jlink-app-template \
6872
| oc create -f -
6973

templates/jlink/jlinked-app.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ parameters:
3131
required: true
3232
- description: Target port for the created Route
3333
name: TARGET_PORT
34+
value: "8080"
35+
required: true
36+
- description: Port for the created Service to listen on
37+
name: SERVICE_PORT
38+
value: "8181"
3439
required: true
3540
message: "... The GitHub webhook secret is ${GITHUB_WEBHOOK_SECRET} ..."
3641
##############################################################################
@@ -267,8 +272,9 @@ objects:
267272
app: ${APPNAME}-jlinked-app
268273
ports:
269274
- protocol: TCP
270-
port: 80
271-
targetPort: 8080
275+
name: target-${TARGET_PORT}-tcp
276+
port: ${{SERVICE_PORT}}
277+
targetPort: ${{TARGET_PORT}}
272278
- apiVersion: route.openshift.io/v1
273279
kind: Route
274280
metadata:

0 commit comments

Comments
 (0)