-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevfile.yaml
56 lines (56 loc) · 1.78 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
schemaVersion: 2.1.0
metadata:
name: vertx-health-checks
namespace: admin-devspaces
projects:
- name: vertx-health-checks-example-redhat
zip:
location: 'http://devfile-registry.openshift-devspaces.svc:8080/resources/v2/vertx-health-checks-example-redhat.zip'
components: []
commands:
- exec:
commandLine: mvn clean install
component: tools
group:
kind: build
workingDir: '${PROJECTS_ROOT}/vertx-health-checks-example-redhat'
id: 1-build
- exec:
commandLine: 'mvn clean install && mvn -Dvertx.disableDnsResolver=true vertx:run'
component: tools
group:
kind: run
workingDir: '${PROJECTS_ROOT}/vertx-health-checks-example-redhat'
id: 2-build-and-run
- exec:
commandLine: 'mvn -DskipTests vertx:debug'
component: tools
group:
kind: debug
workingDir: '${PROJECTS_ROOT}/vertx-health-checks-example-redhat'
id: 3-run-in-debug-mode
- exec:
commandLine: mvn verify
component: tools
group:
kind: debug
workingDir: '${PROJECTS_ROOT}/vertx-health-checks-example-redhat'
id: 4-run-tests
- exec:
commandLine: |
echo
echo "Before you can deploy this application to an openshift cluster,"
echo "you must run 'oc login ...' in the tools terminal."
echo
component: tools
group:
kind: run
workingDir: '${PROJECTS_ROOT}/vertx-health-checks-example-redhat'
id: 5-log-into-deployment-cluster
- exec:
commandLine: 'mvn fabric8:deploy -Popenshift -DskipTests -Dvertx.disableDnsResolver=true'
component: tools
group:
kind: run
workingDir: '${PROJECTS_ROOT}/vertx-health-checks-example-redhat'
id: 6-deploy-to-openshift