-
Notifications
You must be signed in to change notification settings - Fork 22
/
.devfile.yaml
93 lines (93 loc) · 2.34 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
schemaVersion: 2.3.0
metadata:
generateName: northwind-traders
attributes:
controller.devfile.io/storage-type: ephemeral
components:
- name: tools
container:
image: quay.io/devfile/universal-developer-image:ubi8-latest
env:
- name: QUARKUS_HTTP_HOST
value: 0.0.0.0
endpoints:
- exposure: none
name: debug
protocol: tcp
targetPort: 5005
- exposure: none
name: test
protocol: http
targetPort: 8081
- exposure: none
name: remote-dev-pg
protocol: http
targetPort: 5432
- exposure: none
name: remote-dev-mq
protocol: http
targetPort: 15672
- exposure: public
name: inventory
protocol: http
targetPort: 8080
path: /
memoryRequest: 500Mi
memoryLimit: 6G
cpuRequest: 1000m
cpuLimit: 4000m
mountSources: true
- name: m2
volume:
size: 1G
commands:
- id: package
exec:
label: "1. Package"
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: |
mvn clean package
group:
kind: build
isDefault: true
- id: deploy
exec:
label: "2. Deploy"
component: tools
commandLine: |
oc project $(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace) && \
./deploy-to-openshift.sh
workingDir: ${PROJECT_SOURCE}
- id: show-cluster-url
exec:
label: "3. Show Cluster URL"
component: tools
commandLine: |
oc whoami --show-console
workingDir: ${PROJECT_SOURCE}
- id: quarkus-dev
exec:
label: "4. Start Development Mode"
component: tools
commandLine: |
mvn -pl northwind quarkus:dev
workingDir: ${PROJECT_SOURCE}
- id: run-dev-env
exec:
label: "5. JKube Development Session"
component: tools
commandLine: |
oc project $(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace) && \
mvn -pl northwind oc:remote-dev
workingDir: ${PROJECT_SOURCE}
- id: cleanup
exec:
label: "6. Clean Up"
component: tools
commandLine: |
oc delete all --selector 'group in (northwind-traders,northwind-industries)'
workingDir: ${PROJECT_SOURCE}
events:
postStart:
- package