-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdevfile.yaml
76 lines (69 loc) · 2.13 KB
/
devfile.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
schemaVersion: 2.2.0
metadata:
name: devsandbox-camel-labs
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
memoryLimit: 3Gi
env:
- name: JAVA_HOME_TEST
value: /home/tooling/.sdkman/candidates/java/17.0.3-tem
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: public
name: 8080-tcp
protocol: http
targetPort: 8080
volumeMounts:
- name: m2
path: /home/user/.m2
# command: ['JAVA_HOME=$JAVA_HOME_17 && /entrypoint.sh']
# args: ['JAVA_HOME=/home/tooling/.sdkman/candidates/java/17.0.3-tem']
# args: ['JAVA_HOME','=','/home/tooling/.sdkman/candidates/java/17.0.3-tem']
- name: webapp
container:
image: quay.io/redhatintegration/tutorial-web-app:latest
env:
- name: NODE_ENV
value: production
- name: THREESCALE_WILDCARD_DOMAIN
value: local.localdomain
- name: OPENSHIFT_VERSION
value: '4'
- name: WALKTHROUGH_LOCATIONS
value: >-
https://github.com/RedHat-Middleware-Workshops/devsandbox-camel?walkthroughsFolder=/docs/labs
endpoints:
- name: tutorial
exposure: public
targetPort: 5001
protocol: https
secure: true
memoryLimit: 512Mi
mountSources: true
volumeMounts:
- name: tutorial-storage
path: /opt/user-walkthroughs
- name: m2
volume:
size: 1G
- name: tutorial-storage
volume:
size: 256Mi
events:
postStart:
- set-camel-cli
commands:
# - id: set-java-17
# exec:
# commandLine: source ~/.bashrc && sdk default java 17.0.3-tem
# component: tools
- id: set-camel-cli
exec:
# commandLine: source ~/.bashrc && jbang app install camel@apache/camel
commandLine: 'source ~/.bashrc && jbang trust add https://github.com/apache/camel/ && jbang app install -Dcamel.jbang.version=4.8.0 camel@apache/camel && jbang camel@apache/camel plugin add kubernetes'
component: tools