forked from devspaces-samples/microprofile-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
devfile.yaml
58 lines (58 loc) · 1.81 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
schemaVersion: 2.1.0
metadata:
name: microprofile-quickstart
components:
- name: tools
container:
image: quay.io/devspaces/udi-rhel8:3.3
memoryLimit: 3Gi
volumeMounts:
- name: m2
path: /home/user/.m2
- name: eap-xp
container:
image: registry.redhat.io/jboss-eap-7/eap-xp3-openjdk11-openshift-rhel8:3.0
memoryLimit: 1Gi
volumeMounts:
- name: m2
path: /home/jboss/.m2
env:
- name: JAVA_OPTS_APPEND
value: '-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dsun.util.logging.disableCallerCheck=true'
endpoints:
- exposure: public
name: coffee
protocol: http
targetPort: 8080
path: /microprofile-fault-tolerance/coffee
- exposure: public
name: coffee-availability
protocol: http
targetPort: 8080
path: /microprofile-fault-tolerance/coffee/2/availability
- name: m2
volume:
size: 1G
commands:
- id: 1-build
exec:
component: tools
workingDir: ${PROJECTS_ROOT}/microprofile-quickstart/microprofile-fault-tolerance
commandLine: mvn clean install
group:
kind: build
- id: 2-deploy
exec:
component: eap-xp
workingDir: ${PROJECTS_ROOT}/microprofile-quickstart/microprofile-fault-tolerance
commandLine: mvn package wildfly:deploy &&
echo 'The application was deployed, click on the endpoint from Workspace view to test it'
group:
kind: run
- id: 3-update-existing-deployment
exec:
component: eap-xp
workingDir: ${PROJECTS_ROOT}/microprofile-quickstart/microprofile-fault-tolerance
commandLine: mvn clean install && sleep 2 && cp target/*.war /opt/eap/standalone/deployments/ROOT.war
group:
kind: run