-
Notifications
You must be signed in to change notification settings - Fork 45
/
.devfile.yaml
79 lines (79 loc) · 2.28 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
76
77
78
79
schemaVersion: 2.2.0
metadata:
name: quarkus-workshop
attributes:
controller.devfile.io/storage-type: ephemeral
components:
- container:
cpuLimit: 2000m
cpuRequest: 500m
endpoints:
- exposure: public
name: index-webpage
protocol: https
targetPort: 8080
- exposure: public
name: quarkus-devui
path: /q/dev-ui
protocol: https
targetPort: 8080
- exposure: none
name: quarkus-debug
protocol: tcp
targetPort: 5005
- exposure: none
name: test-endpoint
protocol: tcp
targetPort: 8081
- exposure: none
name: kubedock
protocol: tcp
targetPort: 2475
env:
- value: /home/jboss/.m2
name: MAVEN_CONFIG
- value: -Xmx4G -Xss128M -XX:MetaspaceSize=1G -XX:MaxMetaspaceSize=2G
name: MAVEN_OPTS
- name: KUBEDOCK_ENABLED
value: 'true'
- name: DOCKER_HOST
value: 'tcp://127.0.0.1:2475'
- name: TESTCONTAINERS_RYUK_DISABLED
value: 'true'
- name: TESTCONTAINERS_CHECKS_DISABLE
value: 'true'
image: quay.io/openshiftlabs/quarkus-workshop-stack:3.13
memoryLimit: 6Gi
memoryRequest: 4Gi
name: quarkus-tools
commands:
- id: 01-run-tests
exec:
label: 01. Run Tests
component: quarkus-tools
commandLine: mvn verify
- id: 02-live-coding
exec:
label: 02. Start Live Coding
component: quarkus-tools
commandLine: mvn clean quarkus:dev -Dquarkus.http.host=0.0.0.0 -Dquarkus.analytics.disabled=true
- id: 03-package-app
exec:
label: 03. Package App for OpenShift
component: quarkus-tools
commandLine: mvn package -DskipTests
- id: 04-build-native
exec:
label: 04. Build Native App
component: quarkus-tools
commandLine: mvn package -Pnative -DskipTests
- id: 05-run-fast-jar
exec:
label: 05. Run Fast Jar
component: quarkus-tools
commandLine: java -Dquarkus.http.port=8081 -jar target/quarkus-app/quarkus-run.jar
- id: 06-run-native
exec:
label: 06. Run Native App
component: quarkus-tools
commandLine: ./target/people-1.0-SNAPSHOT-runner -Dquarkus.http.port=8081