Skip to content

Adding support for RedHat Jboss EAP 8.0 #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
/stacks/go/ @devfile/devfile-services-team @devfile/che-team

# Java stacks
/stacks/java-jboss-eap/ @ehsavoie @devfile/che-team
/stacks/java-maven/ @kadel @devfile/che-team
/stacks/java-openliberty/ @kadel @devfile/che-team
/stacks/java-openliberty-gradle/ @ajm01 @devfile/che-team
Expand Down
157 changes: 157 additions & 0 deletions stacks/java-jboss-eap/1.0.0/devfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
schemaVersion: 2.2.0
metadata:
name: java-jboss-eap
version: 1.0.0
displayName: JBoss EAP 8
description: Java stack with EAP 8, OpenJDK 17 and Maven 3.9
tags: ["RHEL8", "Java", "OpenJDK", "Maven", "EAP"]
icon: https://raw.githubusercontent.com/redhat-developer/devfile-registry/main/icons/type-jboss.svg
projectType: "JBoss EAP"
language: "java"
website: https://access.redhat.com/products/red-hat-jboss-enterprise-application-platform/
variables:
imageRegistry: 'image-registry.openshift-image-registry.svc:5000'
imageName: 'getting-started'
imageVersion: 'latest'
applicationName: 'start'
nodeName: 'getting-started'
target-namespace: 'getting-started'
starterProjects:
- name: getting-started
description: JBoss EAP Getting Started
git:
checkoutFrom:
remote: eap-devfile-examples
revision: 8.0.x
remotes:
eap-devfile-examples: https://github.com/jbossas/eap-devfile-examples.git
components:
- name: tools
container:
image: registry.redhat.io/devspaces/udi-rhel8:3.11-14
memoryLimit: 1512Mi
mountSources: true
volumeMounts:
- name: m2
path: /home/user/.m2
env:
- name: JAVA_OPTS
value: '-Djava.security.egd=file:/dev/urandom -Djboss.host.name=localhost'
- name: DEBUG_PORT
value: '5005'
- name: NODE_NAME
value: '{{nodeName}}'
- name: IMAGE_REGISTRY
value: '{{imageRegistry}}'
- name: IMAGE
value: '{{imageName}}'
- name: TARGET_NAMESPACE
value: '{{target-namespace}}'
- name: VSCODE_DEFAULT_WORKSPACE
value: /projects/eap-devfile-examples/.code-workspace
- name: USE_JAVA17
value: 'true'
endpoints:
- name: debug
exposure: internal
protocol: tcp
targetPort: 5005
- name: 'http'
protocol: http
targetPort: 8080
exposure: public
- name: 'management'
targetPort: 9990
protocol: http
exposure: internal
- name: 'transactions'
targetPort: 4172
protocol: tcp
exposure: internal
- name: m2
volume:
size: 3Gi
commands:
- id: package
exec:
label: "InnerLoop 01 - Build the application."
component: tools
commandLine: mvn clean verify -Dmaven.wagon.http.ssl.insecure=true
workingDir: ${PROJECT_SOURCE}
group:
kind: build
isDefault: true
- id: run
exec:
label: "InnerLoop 02 - Run the application in dev mode."
component: tools
commandLine: ./target/server/bin/standalone.sh -Djboss.host.name=${NODE_NAME}
workingDir: ${PROJECT_SOURCE}
group:
kind: run
isDefault: true
- id: debug
exec:
label: "InnerLoop 03 - Debug the application in dev mode."
component: tools
commandLine: ./target/server/bin/standalone.sh -Djboss.host.name=${NODE_NAME} --debug
workingDir: ${PROJECT_SOURCE}
group:
kind: debug
isDefault: true
- id: shutdown
exec:
label: "InnerLoop 04 - Shutdown the server."
component: tools
commandLine: ./target/server/bin/jboss-cli.sh -c --command=shutdown
workingDir: ${PROJECT_SOURCE}
hotReloadCapable: false
group:
kind: run
isDefault: false
- id: deploy-image-sandbox
exec:
label: "SandBox 01 - Deploy Image into OpenShift SandBox."
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "export IMAGE_REGISTRY_NAMESPACE=$(oc project -q) && helm repo add jboss https://jbossas.github.io/eap-charts/ && helm install ${IMAGE} --namespace=${IMAGE_REGISTRY_NAMESPACE} -f .charts/helm.yaml jboss/eap8"
group:
kind: run
isDefault: false
- id: undeploy-image-sandbox
exec:
label: "SandBox 02 - Undeploy Image from OpenShift SandBox."
component: tools
workingDir: ${PROJECT_SOURCE}
commandLine: "helm uninstall ${IMAGE}"
group:
kind: run
isDefault: false
# For a real deployment on OpenShift where you want to use the target namespace.
# - id: create-target-namespace
# exec:
# label: "OuterLoop 00 - Create target namespace on OpenShift."
# component: tools
# workingDir: ${PROJECT_SOURCE}
# commandLine: "oc new-project ${TARGET_NAMESPACE}"
# group:
# kind: run
# isDefault: false
# - id: deploy-image
# exec:
# label: "OuterLoop 01 - Deploy Image into OpenShift."
# component: tools
# workingDir: ${PROJECT_SOURCE}
# commandLine: "helm repo add jboss https://jbossas.github.io/eap-charts/ && helm install ${IMAGE} --namespace=${TARGET_NAMESPACE} -f .charts/helm.yaml jboss/eap8"
# group:
# kind: run
# isDefault: false
# - id: undeploy-image
# exec:
# label: "OuterLoop 02 - Undeploy Image from OpenShift."
# component: tools
# workingDir: ${PROJECT_SOURCE}
# commandLine: "helm uninstall ${IMAGE}"
# group:
# kind: run
# isDefault: false
8 changes: 8 additions & 0 deletions stacks/java-jboss-eap/stack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: java-jboss-eap
description: 'JakartaEE application using JBoss EAP 8.0'
displayName: JBoss EAP 8.0
icon: https://catalog.redhat.com/img/svg/Red-Hat-Logo.svg
versions:
- version: 1.0.0
default: true

Loading