This repository was archived by the owner on Apr 16, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdevfile.yaml
More file actions
226 lines (226 loc) · 7.23 KB
/
devfile.yaml
File metadata and controls
226 lines (226 loc) · 7.23 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
schemaVersion: 2.0.0
metadata:
name: java-jboss-eap-xp
version: 1.0.0
displayName: JBoss EAP XP 2.0
description: Java stack with EAP XP 2.0, OpenJDK 11 and Maven 3.5
tags: ["RHEL8", "Java", "OpenJDK", "Maven", "EAP", "Microprofile", "EAP XP"]
projectType: "JBoss EAP XP"
language: "java"
website: https://access.redhat.com/products/red-hat-jboss-enterprise-application-platform/
starterProjects:
- name: microprofile-config
description: EAP XP 2.0 Eclipse Microprofile Config Quickstart
git:
checkoutFrom:
remote: jboss-developer
revision: xp-2.0.x
remotes:
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
subDir: microprofile-config
- name: microprofile-config
description: EAP XP 2.0 Eclipse Microprofile Fault Tolerance Quickstart
git:
checkoutFrom:
remote: jboss-developer
revision: xp-2.0.x
remotes:
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
subDir: microprofile-fault-tolerance
- name: microprofile-config
description: EAP XP 2.0 Eclipse Microprofile Health Quickstart
git:
checkoutFrom:
remote: jboss-developer
revision: xp-2.0.x
remotes:
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
subDir: microprofile-health
- name: microprofile-config
description: EAP XP 2.0 Eclipse Microprofile JWT Quickstart
git:
checkoutFrom:
remote: jboss-developer
revision: xp-2.0.x
remotes:
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
subDir: microprofile-jwt
- name: microprofile-config
description: EAP XP 2.0 Eclipse Microprofile Metrics Quickstart
git:
checkoutFrom:
remote: jboss-developer
revision: xp-2.0.x
remotes:
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
subDir: microprofile-metrics
- name: microprofile-config
description: EAP XP 2.0 Eclipse Microprofile OpenAPI Quickstart
git:
checkoutFrom:
remote: jboss-developer
revision: xp-2.0.x
remotes:
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
subDir: microprofile-openapi
- name: microprofile-config
description: EAP XP 2.0 Eclipse Microprofile OpenTracing Quickstart
git:
checkoutFrom:
remote: jboss-developer
revision: xp-2.0.x
remotes:
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
subDir: microprofile-opentracing
- name: microprofile-config
description: EAP XP 2.0 Eclipse Microprofile REST Client Quickstart
git:
checkoutFrom:
remote: jboss-developer
revision: xp-2.0.x
remotes:
jboss-developer: https://github.com/jboss-developer/jboss-eap-quickstarts.git
subDir: microprofile-rest-client
components:
- name: eap-xp
container:
image: registry.redhat.io/jboss-eap-7/eap-xp2-openjdk11-openshift-rhel8
memoryLimit: 1512Mi
mountSources: true
volumeMounts:
- name: m2-repository
path: /home/jboss/.m2/repository
env:
- name: GC_METASPACE_SIZE
value: '96'
- name: GC_MAX_METASPACE_SIZE
value: '256'
- name: GALLEON_PROVISION_LAYERS
value: 'jaxrs-server,microprofile-platform'
- name: S2I_DESTINATION_DIR
value: '/projects'
- name: STANDALONE_RESTORE
value: /home/jboss/.m2/.lucky
#Overriding s2i image config to use the copied contents and thus avoid the file permissions issue.
- name: GALLEON_LOCAL_MAVEN_REPO
value: '/tmp/galleon-m2-repository'
- name: JBOSS_HOME
value: '/projects/eap'
endpoints:
- name: 'http'
targetPort: 8080
- name: m2-repository
volume:
size: 3Gi
- name: jaeger
container:
image: quay.io/jaegertracing/all-in-one:1.21.0
memoryLimit: 128Mi
endpoints:
- name: 'tracing-ui'
targetPort: 16686
commands:
- id: build
composite:
label: Build and deploy on JBoss EAP-XP Server.
commands:
- compile
- copy-artifact
parallel: false
group:
kind: build
isDefault: true
- id: compile
exec:
label: Compile and package the application
component: eap-xp
commandLine: mvn -Dmaven.test.skip=true -Dcom.redhat.xpaas.repo.jbossorg -s /home/jboss/.m2/settings.xml clean package
workingDir: $PROJECTS_ROOT
group:
kind: build
isDefault: false
- id: copy-artifact
exec:
label: Copy application artifact
component: eap-xp
commandLine: cp target/*.war $JBOSS_HOME/standalone/deployments/ROOT.war
workingDir: $PROJECTS_ROOT
group:
kind: build
isDefault: false
- id: run
exec:
label: Launch JBoss EAP-XP Server
component: eap-xp
commandLine: cp -f $STANDALONE_RESTORE/standalone-openshift.xml $JBOSS_HOME/standalone/configuration/standalone-openshift.xml && $JBOSS_HOME/bin/openshift-launch.sh
workingDir: $PROJECTS_ROOT
hotReloadCapable: true
group:
kind: run
isDefault: true
- id: debug
exec:
label: Launch JBoss EAP-XP Server with debug enabled
component: eap-xp
commandLine: cp -f $STANDALONE_RESTORE/standalone-openshift.xml $JBOSS_HOME/standalone/configuration/standalone-openshift.xml && $JBOSS_HOME/bin/openshift-launch.sh
workingDir: $PROJECTS_ROOT
hotReloadCapable: true
env:
- name: JAVA_OPTS_APPEND
value: '-Xrunjdwp:transport=dt_socket,address=0.0.0.0:$DEBUG_PORT,server=y,suspend=n -Dsun.util.logging.disableCallerCheck=true'
group:
kind: debug
isDefault: true
- id: provision-server
exec:
component: eap-xp
commandLine: /usr/local/s2i/assemble && cp -Rf $JBOSS_HOME .
workingDir: $PROJECTS_ROOT
env:
- name: JBOSS_HOME
value: '/tmp/eap'
group:
kind: build
isDefault: false
- id: store-config
exec:
component: eap-xp
commandLine: mkdir $STANDALONE_RESTORE && cp -f $JBOSS_HOME/standalone/configuration/standalone-openshift.xml $STANDALONE_RESTORE/standalone-openshift.xml
workingDir: $PROJECTS_ROOT
env:
- name: JBOSS_HOME
value: /tmp/eap
group:
kind: build
isDefault: false
#Hack to avoid the file permissions issue with the random openshift user
- id: copy-galleon
exec:
component: eap-xp
commandLine: cp -Rf /opt/jboss/container/wildfly/s2i/galleon/galleon-m2-repository /tmp/. && cp -Rf /opt/eap /tmp/.
workingDir: $PROJECTS_ROOT
group:
kind: build
isDefault: false
- id: init-server
composite:
label: Provision JBoss EAP-XP Server on post-start.
commands:
- copy-galleon
- provision-server
- store-config
parallel: false
group:
kind: build
isDefault: false
- id: cleanup
exec:
component: eap-xp
commandLine: rm -Rf eap
workingDir: $PROJECTS_ROOT
group:
kind: build
isDefault: false
events:
postStart:
- "init-server"