-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevfile.yaml
68 lines (68 loc) · 2 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
schemaVersion: 2.1.0
metadata:
name: vertx-health-checks
components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.4
memoryLimit: 3Gi
mountSources: true
endpoints:
- exposure: public
name: health-checks-endpoint
protocol: http
targetPort: 8080
volumeMounts:
- name: m2
path: /home/user/.m2
- name: m2
volume:
size: 1G
commands:
- id: 1-build
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/vertx-health-checks-example-redhat
commandLine: mvn clean install
group:
kind: build
- id: 2-build-and-run
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/vertx-health-checks-example-redhat
commandLine: mvn clean install && mvn -Dvertx.disableDnsResolver=true vertx:run
group:
kind: run
- id: 3-run-in-debug-mode
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/vertx-health-checks-example-redhat
commandLine: mvn -DskipTests vertx:debug
group:
kind: debug
- id: 4-run-tests
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/vertx-health-checks-example-redhat
commandLine: mvn verify
group:
kind: debug
- id: 5-log-into-deployment-cluster
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/vertx-health-checks-example-redhat
commandLine: |
echo
echo "You are already logged in to the current cluster. However, if you want"
echo "to deploy this application to a different OpenShift cluster, you must"
echo "run 'oc login ...' in the tools terminal."
echo
group:
kind: run
- id: 6-deploy-to-openshift
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/vertx-health-checks-example-redhat
commandLine: oc project $DEVWORKSPACE_NAMESPACE && mvn fabric8:deploy -Popenshift -DskipTests -Dvertx.disableDnsResolver=true
group:
kind: run