/
devfile.yaml
69 lines (69 loc) · 2.25 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
schemaVersion: 2.1.0
metadata:
name: jboss-eap-bootable
components:
- name: tools
container:
image: quay.io/devspaces/udi-rhel8:3.0
memoryLimit: 3Gi
endpoints:
- exposure: public
name: eap-http
protocol: http
targetPort: 8080
- exposure: internal
name: eap-management
protocol: http
targetPort: 9990
- exposure: internal
name: debug
protocol: http
targetPort: 8000
volumeMounts:
- name: m2
path: /home/user/.m2
- name: gradle
path: /home/user/.gradle
- name: m2
volume:
size: 1G
- name: gradle
volume:
size: 1G
commands:
- id: build
exec:
component: tools
workingDir: ${PROJECT_SOURCE}/microprofile-fault-tolerance
commandLine: mvn -Pbootable-jar clean package
group:
kind: build
- id: run
exec:
component: tools
workingDir: ${PROJECT_SOURCE}/microprofile-fault-tolerance
commandLine: mvn -Pbootable-jar -Dwildfly.bootable.arguments="-b=0.0.0.0" org.wildfly.plugins:wildfly-jar-maven-plugin:run
group:
kind: run
- id: build-and-run-in-debug
exec:
component: tools
workingDir: ${PROJECT_SOURCE}/microprofile-fault-tolerance
commandLine: mvn -Pbootable-jar -Dwildfly.bootable.arguments="-b=0.0.0.0" -Dwildfly.bootable.jvmArguments="-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:8000,server=y,suspend=n" clean org.wildfly.plugins:wildfly-jar-maven-plugin:dev &&
mvn package -Ddev -Pbootable-jar && BOOTABLE_XP_PID=$(jps | grep microprofile-fault-tolerance-bootable.jar | awk '{print $1}') && while [[ ( -d /proc/$BOOTABLE_XP_PID ) && ( -z `grep zombie /proc/$BOOTABLE_XP_PID/status` ) ]]; do sleep 1; done
group:
kind: build
- id: hot-update
exec:
component: tools
workingDir: ${PROJECT_SOURCE}/microprofile-fault-tolerance
commandLine: mvn package -Ddev -Pbootable-jar
group:
kind: run
- id: stop-server
exec:
component: tools
workingDir: ${PROJECT_SOURCE}/microprofile-fault-tolerance
commandLine: mvn -Pbootable-jar org.wildfly.plugins:wildfly-jar-maven-plugin:shutdown
group:
kind: run