Skip to content

Commit 7e11fa9

Browse files
authored
Merge pull request #86 from jmesnil/eap81-example
Add example for EAP 8.1
2 parents c10dcba + c616b0e commit 7e11fa9

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Install a EAP 8.1 Application
2+
:toc: left
3+
:icons: font
4+
:idprefix:
5+
:idseparator: -
6+
:keywords: openshift,wildfly,microprofile,helm
7+
8+
This example shows how to deploy a Java application with EAP 8.1 on OpenShift.
9+
10+
## Prerequisites
11+
12+
## Source Code
13+
14+
The source code for the backend is hosted at https://github.com/jboss-eap-up-and-running/eap81-getting-started.git
15+
16+
It is a simple application that uses JAX-RS to exposes HTTP endpoint.
17+
18+
## Installation
19+
20+
[source,options="nowrap"]
21+
----
22+
$ helm install eap81-app -f examples/eap81/getting-started/app.yaml ./charts/eap81
23+
----
24+
25+
## Deployment
26+
27+
Once the chart is installed, let's wait for the application to be built and deployed:
28+
29+
[source,options="nowrap"]
30+
----
31+
$ oc get deployment/eap81-app -w
32+
NAME READY UP-TO-DATE AVAILABLE AGE
33+
eap81-app 0/1 1 0 27s
34+
...
35+
eap81-app 1/1 1 1 5m29s
36+
----
37+
38+
## Use the application
39+
40+
Once the application is deployed on OpenShift, it can be accessed from the route `eap81-app`.
41+
Let's find the host that we can use to connect to this backend:
42+
43+
[source,options="nowrap"]
44+
----
45+
$ oc get route eap81-app -o jsonpath="{.spec.host}"
46+
eap81-app-jmesnil1-dev.apps.sandbox.x8i5.p1.openshiftapps.com
47+
----
48+
49+
This value will be different for every installation of the application.
50+
51+
We can then query this application by calling its HTTP endpoint from the URL above.
52+
53+
## Clean up
54+
55+
The application can be deleted by running the command:
56+
57+
[source,options="nowrap"]
58+
----
59+
$ helm delete eap81-app
60+
release "eap81-app " uninstalled
61+
----
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
build:
2+
uri: https://github.com/jboss-eap-up-and-running/eap81-getting-started.git

0 commit comments

Comments
 (0)