Skip to content
This repository was archived by the owner on Apr 16, 2025. It is now read-only.

Commit a8daa2d

Browse files
committed
Add the JBoss EAP devfile stack
Signed-off-by: John Collier <jcollier@redhat.com>
1 parent 809788e commit a8daa2d

1 file changed

Lines changed: 173 additions & 0 deletions

File tree

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
schemaVersion: 2.0.0
2+
metadata:
3+
name: java-jboss-eap-xp-bootable-jar
4+
version: 1.0.0
5+
website: https://access.redhat.com/products/red-hat-jboss-enterprise-application-platform/
6+
starterProjects:
7+
- name: microprofile-config
8+
description: EAP XP 2.0 Eclipse Microprofile Config Quickstart
9+
git:
10+
checkoutFrom:
11+
remote: jboss-developer
12+
revision: xp-2.0.x
13+
remotes:
14+
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
15+
subDir: microprofile-config
16+
- name: microprofile-fault-tolerance
17+
description: EAP XP 2.0 Eclipse Microprofile Fault Tolerance Quickstart
18+
git:
19+
checkoutFrom:
20+
remote: jboss-developer
21+
revision: xp-2.0.x
22+
remotes:
23+
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
24+
subDir: microprofile-fault-tolerance
25+
- name: microprofile-health
26+
description: EAP XP 2.0 Eclipse Microprofile Health Quickstart
27+
git:
28+
checkoutFrom:
29+
remote: jboss-developer
30+
revision: xp-2.0.x
31+
remotes:
32+
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
33+
subDir: microprofile-health
34+
- name: microprofile-jwt
35+
description: EAP XP 2.0 Eclipse Microprofile JWT Quickstart
36+
git:
37+
checkoutFrom:
38+
remote: jboss-developer
39+
revision: xp-2.0.x
40+
remotes:
41+
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
42+
subDir: microprofile-jwt
43+
- name: microprofile-metrics
44+
description: EAP XP 2.0 Eclipse Microprofile Metrics Quickstart
45+
git:
46+
checkoutFrom:
47+
remote: jboss-developer
48+
revision: xp-2.0.x
49+
remotes:
50+
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
51+
subDir: microprofile-metrics
52+
- name: microprofile-openapi
53+
description: EAP XP 2.0 Eclipse Microprofile OpenAPI Quickstart
54+
git:
55+
checkoutFrom:
56+
remote: jboss-developer
57+
revision: xp-2.0.x
58+
remotes:
59+
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
60+
subDir: microprofile-openapi
61+
- name: microprofile-opentracing
62+
description: EAP XP 2.0 Eclipse Microprofile OpenTracing Quickstart
63+
git:
64+
checkoutFrom:
65+
remote: jboss-developer
66+
revision: xp-2.0.x
67+
remotes:
68+
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
69+
subDir: microprofile-opentracing
70+
- name: microprofile-rest-client
71+
description: EAP XP 2.0 Eclipse Microprofile REST Client Quickstart
72+
git:
73+
checkoutFrom:
74+
remote: jboss-developer
75+
revision: xp-2.0.x
76+
remotes:
77+
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
78+
subDir: microprofile-rest-client
79+
components:
80+
- name: jaeger
81+
container:
82+
image: quay.io/jaegertracing/all-in-one:1.21.0
83+
memoryLimit: 128Mi
84+
endpoints:
85+
- name: 'tracing-ui'
86+
targetPort: 16686
87+
- name: eap-xp
88+
container:
89+
image: registry.access.redhat.com/ubi8/openjdk-11
90+
memoryLimit: 1512Mi
91+
mountSources: true
92+
volumeMounts:
93+
- name: m2-repository
94+
path: /home/jboss/.m2/repository
95+
env:
96+
# Enabling Jaeger tracing
97+
- name: WILDFLY_TRACING_ENABLED
98+
value: 'true'
99+
# Define the Jaeger service name
100+
- name: JAEGER_SERVICE_NAME
101+
value: 'microprofile-opentracing'
102+
# Configure Jaeger traces
103+
- name: JAEGER_REPORTER_LOG_SPANS
104+
value: 'true'
105+
- name: JAEGER_SAMPLER_TYPE
106+
value: 'const'
107+
- name: JAEGER_SAMPLER_PARAM
108+
value: '1'
109+
- name: GC_METASPACE_SIZE
110+
value: '96'
111+
- name: GC_MAX_METASPACE_SIZE
112+
value: '256'
113+
- name: JAVA_OPTS
114+
value: '-Djava.security.egd=file:/dev/urandom'
115+
- name: MVN_ARGS_APPEND
116+
value: '-Pbootable-jar -s /home/jboss/.m2/settings.xml -Dmaven.repo.local=/home/jboss/.m2/repository -Dcom.redhat.xpaas.repo.jbossorg'
117+
endpoints:
118+
- name: 'http'
119+
targetPort: 8080
120+
- name: m2-repository
121+
volume:
122+
size: 3Gi
123+
commands:
124+
- id: build
125+
exec:
126+
component: eap-xp
127+
commandLine: mvn ${MVN_ARGS_APPEND} clean package
128+
workingDir: $PROJECTS_ROOT
129+
group:
130+
kind: build
131+
isDefault: true
132+
- id: run
133+
exec:
134+
component: eap-xp
135+
commandLine: mvn ${MVN_ARGS_APPEND} -Dwildfly.bootable.arguments="-b=0.0.0.0" wildfly-jar:run
136+
workingDir: $PROJECTS_ROOT
137+
group:
138+
kind: run
139+
isDefault: true
140+
- id: debug
141+
exec:
142+
component: eap-xp
143+
commandLine: mvn ${MVN_ARGS_APPEND} -Dwildfly.bootable.arguments="-b=0.0.0.0" -Dwildfly.bootable.jvmArguments="-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:${DEBUG_PORT},server=y,suspend=n" wildfly-jar:run
144+
workingDir: $PROJECTS_ROOT
145+
group:
146+
kind: debug
147+
isDefault: true
148+
- id: dev-build
149+
exec:
150+
component: eap-xp
151+
commandLine: mvn ${MVN_ARGS_APPEND} -Dmaven.test.skip=true -Ddev package
152+
workingDir: $PROJECTS_ROOT
153+
group:
154+
kind: build
155+
isDefault: false
156+
- id: dev-run
157+
exec:
158+
component: eap-xp
159+
commandLine: mvn ${MVN_ARGS_APPEND} wildfly-jar:dev
160+
workingDir: $PROJECTS_ROOT
161+
hotReloadCapable: true
162+
group:
163+
kind: run
164+
isDefault: false
165+
- id: dev-debug
166+
exec:
167+
component: eap-xp
168+
commandLine: mvn ${MVN_ARGS_APPEND} -Dwildfly.bootable.arguments="-b=0.0.0.0" -Dwildfly.bootable.jvmArguments="-agentlib:jdwp=transport=dt_socket,address=0.0.0.0:${DEBUG_PORT},server=y,suspend=n" wildfly-jar:dev
169+
workingDir: $PROJECTS_ROOT
170+
hotReloadCapable: true
171+
group:
172+
kind: debug
173+
isDefault: false

0 commit comments

Comments
 (0)