-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WFLY-17947]: todo-backend Readme OpenShift instructions results in a…
… non-functional QS app. * Fixing docs and pulling back composite helm charts. * Adding workaround for WildFly 28.0.0 issue with opentelemetry * Adding description of the openshift profile * Removing managed server integration tests Signed-off-by: Emmanuel Hugonnet <ehugonne@redhat.com>
- Loading branch information
Showing
15 changed files
with
413 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,5 +31,6 @@ atlassian-ide-plugin.xml | |
.nbattrs | ||
*.log | ||
build.metadata | ||
|
||
*.lock | ||
*.tgz | ||
/**/nbproject/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
[[build-the-quickstart-for-openshift]] | ||
== Build the {productName} Source-to-Image (S2I) Quickstart to OpenShift with Helm Charts | ||
|
||
On OpenShift, the S2I build with Apache Maven will use an `openshift` profile used to provision a {productName} server to deploy and run the quickstart in OpenShift environment. | ||
You can activate the Maven profile named `openshift` when building the quickstart: | ||
|
||
[source,subs="attributes+",options="nowrap"] | ||
---- | ||
$ mvn clean package -Popenshift | ||
---- | ||
|
||
The provisioned {productName} server for OpenShift, with the quickstart deployed, can then be found in the `target/server` directory, and its usage is similar to a standard server distribution. You may note that unlike the `provisioned-server` profile it uses the cloud feature pack which enables a configuration tuned for OpenShift environment. | ||
|
||
ifndef::ProductRelease,EAPXPRelease[] | ||
The server provisioning functionality is provided by the WildFly Maven Plugin, and you may find its configuration in the quickstart `pom.xml`: | ||
endif::[] | ||
|
||
ifdef::ProductRelease,EAPXPRelease[] | ||
The server provisioning functionality is provided by the EAP Maven Plugin, and you may find its configuration in the quickstart `pom.xml`: | ||
endif::[] | ||
|
||
ifndef::ProductRelease,EAPXPRelease[] | ||
[source,xml,subs="attributes+"] | ||
---- | ||
<profile> | ||
<id>openshift</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.wildfly.plugins</groupId> | ||
<artifactId>wildfly-maven-plugin</artifactId> | ||
<version>${version.wildfly.maven.plugin}</version> | ||
<configuration> | ||
<feature-packs> | ||
<feature-pack> | ||
<location>org.wildfly:wildfly-galleon-pack:${version.server}</location> | ||
</feature-pack> | ||
<feature-pack> | ||
<location>org.wildfly.cloud:wildfly-cloud-galleon-pack:${version.cloud.fp}</location> | ||
</feature-pack> | ||
</feature-packs> | ||
<layers> | ||
<layer>cloud-server</layer> | ||
</layers> | ||
<filename>ROOT.war</filename> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>package</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
---- | ||
endif::[] | ||
|
||
ifdef::ProductRelease,EAPXPRelease[] | ||
[source,xml,subs="attributes+"] | ||
---- | ||
<profile> | ||
<id>openshift</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.jboss.eap.plugins</groupId> | ||
<artifactId>eap-maven-plugin</artifactId> | ||
<version>${version.eap.maven.plugin}</version> | ||
<configuration> | ||
<feature-packs> | ||
<feature-pack> | ||
<location>org.jboss.eap:wildfly-ee-galleon-pack</location> | ||
</feature-pack> | ||
<feature-pack> | ||
<location>org.jboss.eap.cloud:eap-cloud-galleon-pack</location> | ||
</feature-pack> | ||
</feature-packs> | ||
<layers> | ||
<layer>cloud-server</layer> | ||
</layers> | ||
<filename>ROOT.war</filename> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>package</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
---- | ||
endif::[] | ||
|
||
[NOTE] | ||
==== | ||
Since the plugin configuration above deploys quickstart on root web context of the provisioned server, the URL to access the application should not have the `/{artifactId}` path segment after `HOST:PORT`. | ||
==== |
Oops, something went wrong.