-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevfile.yaml
More file actions
114 lines (101 loc) · 3.36 KB
/
Copy pathdevfile.yaml
File metadata and controls
114 lines (101 loc) · 3.36 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
schemaVersion: 2.2.0
attributes:
controller.devfile.io/storage-type: per-workspace
metadata:
name: devsandbox-camel-catalog
projects:
- name: catalog
git:
remotes:
origin: https://github.com/RedHat-Middleware-Workshops/devsandbox-catalog-demo.git
- name: demo1
git:
remotes:
origin: https://github.com/RedHat-Middleware-Workshops/devsandbox-category-demo1.git
- name: demo2
git:
remotes:
origin: https://github.com/RedHat-Middleware-Workshops/devsandbox-category-demo2.git
components:
- name: tools
container:
image: quay.io/redhatintegration/rhi-tools:devspaces
memoryLimit: 3Gi
env:
- name: MAVEN_CONFIG
value: ""
- name: JAVA_OPTS
value: "-XX:MaxRAMPercentage=50.0 -XX:+UseParallelGC -XX:MinHeapFreeRatio=10
-XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90
-Dsun.zip.disableMemoryMapping=true -Xms20m -Djava.security.egd=file:/dev/./urandom
-Duser.home=/home/user"
- name: MAVEN_OPTS
value: $(JAVA_OPTS)
- name: VSCODE_DEFAULT_WORKSPACE
value: "/projects/catalog/config.code-workspace"
endpoints:
- exposure: public
name: 8080-tcp
protocol: http
targetPort: 8080
volumeMounts:
- name: m2
path: /home/user/.m2
- name: webapp-all
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: PORT
value: '5001'
- name: WALKTHROUGH_LOCATIONS
value: >-
https://github.com/RedHat-Middleware-Workshops/devsandbox-category-demo1?walkthroughsFolder=/docs/labs,
https://github.com/RedHat-Middleware-Workshops/devsandbox-category-demo2?walkthroughsFolder=/docs/labs,
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: 2Gi
- name: tutorial-storage
volume:
size: 256Mi
commands:
- id: run-stub
exec:
commandLine: JAVA_HOME=$JAVA_HOME_11 mvn -Dspring-boot.run.profiles=dev -s configuration/settings.xml
component: tools
workingDir: "${PROJECT_SOURCE}/stubs/end1"
- id: run-main
exec:
commandLine: JAVA_HOME=$JAVA_HOME_11 mvn -Dspring-boot.run.profiles=dev -s configuration/settings.xml
component: tools
workingDir: "${PROJECT_SOURCE}/level1simple"
- id: send-request
exec:
commandLine: >-
curl -H 'content-type: application/json' -d '{"id":"123"}' http://localhost:8080/camel/subscriber/details
component: tools
workingDir: "${PROJECT_SOURCE}"
- id: debug-services
exec:
commandLine: |
JAVA_HOME=$JAVA_HOME_8 mvn spring-boot:run -DskipTests \
-Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
component: tools
workingDir: "${PROJECT_SOURCE}"