Skip to content

Commit 1d8107a

Browse files
committed
Add shared-doc to allow building flat README.adoc
1 parent 7126797 commit 1d8107a

34 files changed

+1492
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
[[add_the_application_management_users]]
2+
= Add the Authorized Application and Management Users
3+
4+
// Note: The group ID syntax must be defined in the calling topic.
5+
// using the document attribute :app-user-groups:
6+
// Use a comma-delimited list to define more than one group.
7+
//
8+
// :app-user-groups: guest, users
9+
// :admin-user-groups: admin, superusers
10+
11+
ifdef::app-user-groups[]
12+
:app-group-list: {app-user-groups}
13+
:app-group-command: -g '{app-user-groups}'
14+
endif::app-user-groups[]
15+
16+
ifndef::app-user-groups[]
17+
:app-group-list:
18+
:app-group-command:
19+
endif::app-user-groups[]
20+
21+
ifdef::admin-user-groups[]
22+
:admin-group-list: {admin-user-groups}
23+
:admin-group-command: -g '{admin-user-groups}'
24+
endif::admin-user-groups[]
25+
26+
ifndef::admin-user-groups[]
27+
:admin-group-list:
28+
:admin-group-command:
29+
endif::admin-user-groups[]
30+
31+
// attr which other sections may check (ifdef) to know if users needs to be added
32+
:addQuickstartUser: true
33+
:addQuickstartAdmin: true
34+
35+
This quickstart uses secured management interfaces and requires that you create the following application user to access the running application.
36+
37+
[cols="20%,20%,20%,40%",options="headers"]
38+
|===
39+
|UserName |Realm |Password |Roles
40+
41+
|quickstartUser |ApplicationRealm |quickstartPwd1! |{app-group-list}
42+
|quickstartAdmin | ManagementRealm | adminPwd1! | {admin-group-list}
43+
|===
44+
45+
To add the application user, open a terminal and type the following command:
46+
[source,subs="+quotes,attributes+",options="nowrap"]
47+
----
48+
$ __{jbossHomeName}__/bin/add-user.sh -a -u 'quickstartUser' -p 'quickstartPwd1!' {app-group-command}
49+
$ __{jbossHomeName}__/bin/add-user.sh -a -u 'quickstartAdmin' -p 'adminPwd1!' {admin-group-command}
50+
----
51+
NOTE: For Windows, use the `__{jbossHomeName}__\bin\add-user.bat` script.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[[add_the_application_user]]
2+
= Add the Authorized Application User
3+
4+
// Note: The group ID syntax must be defined in the calling topic.
5+
// using the document attribute :app-user-groups:
6+
// Use a comma-delimited list to define more than one group.
7+
//
8+
// :app-user-groups: guest, users
9+
10+
ifdef::app-user-groups[]
11+
:app-group-list: {app-user-groups}
12+
:app-group-command: -g '{app-user-groups}'
13+
endif::app-user-groups[]
14+
15+
ifndef::app-user-groups[]
16+
:app-group-list:
17+
:app-group-command:
18+
endif::app-user-groups[]
19+
20+
// attr which other sections may check (ifdef) to know if users needs to be added
21+
:addQuickstartUser: true
22+
23+
This quickstart uses secured application interfaces and requires that you create the following application user to access the running application.
24+
25+
[cols="20%,20%,20%,40%",options="headers"]
26+
|===
27+
|UserName |Realm |Password |Roles
28+
29+
|quickstartUser |ApplicationRealm |quickstartPwd1! |{app-group-list}
30+
|===
31+
32+
To add the application user, open a terminal and type the following command:
33+
[source,subs="+quotes,attributes+",options="nowrap"]
34+
----
35+
$ __{jbossHomeName}__/bin/add-user.sh -a -u 'quickstartUser' -p 'quickstartPwd1!' {app-group-command}
36+
----
37+
NOTE: For Windows, use the `__{jbossHomeName}__\bin\add-user.bat` script.

shared-doc/attributes.adoc

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
//***********************************************************************************
2+
// Enable the following flag to build README.html files for JBoss EAP product builds.
3+
// Comment it out for WildFly builds.
4+
//***********************************************************************************
5+
:ProductRelease:
6+
7+
//***********************************************************************************
8+
// Enable the following flag to build README.html files for EAP XP product builds.
9+
// Comment it out for WildFly or JBoss EAP product builds.
10+
//***********************************************************************************
11+
:EAPXPRelease:
12+
13+
// This is a universal name for all releases
14+
:ProductShortName: JBoss EAP
15+
// Product names and links are dependent on whether it is a product release (CD or JBoss)
16+
// or the WildFly project.
17+
// The "DocInfo*" attributes are used to build the book links to the product documentation
18+
19+
ifdef::ProductRelease[]
20+
// JBoss EAP release
21+
:productName: JBoss EAP
22+
:productNameFull: Red Hat JBoss Enterprise Application Platform
23+
:productVersion: 8.1
24+
:DocInfoProductNumber: {productVersion}
25+
:WildFlyQuickStartRepoTag: 8.1.x
26+
:productImageVersion: 8.1.0
27+
:helmChartName: jboss-eap/eap81
28+
endif::[]
29+
30+
ifdef::EAPXPRelease[]
31+
// JBoss EAP XP release
32+
:productName: JBoss EAP XP
33+
:productNameFull: Red Hat JBoss Enterprise Application Platform expansion pack
34+
:productVersion: 6.0
35+
:DocInfoProductNumber: 8.1
36+
:WildFlyQuickStartRepoTag: xp-6.0.x
37+
:productImageVersion: 6.0
38+
endif::[]
39+
40+
ifdef::ProductRelease,EAPXPRelease[]
41+
:githubRepoUrl: https://github.com/jboss-developer/jboss-eap-quickstarts/
42+
:githubRepoCodeUrl: https://github.com/jboss-developer/jboss-eap-quickstarts.git
43+
:jbossHomeName: EAP_HOME
44+
:DocInfoProductName: Red Hat JBoss Enterprise Application Platform
45+
:DocInfoProductNameURL: red_hat_jboss_enterprise_application_platform
46+
:DocInfoPreviousProductName: jboss-enterprise-application-platform
47+
:quickstartDownloadName: {productNameFull} {productVersion} Quickstarts
48+
:quickstartDownloadUrl: https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=appplatform&downloadType=distributions
49+
:helmRepoName: jboss-eap
50+
:helmRepoUrl: https://jbossas.github.io/eap-charts/
51+
// END ifdef::ProductRelease,EAPXPRelease[]
52+
endif::[]
53+
54+
ifndef::ProductRelease,EAPXPRelease[]
55+
// WildFly project
56+
:productName: WildFly
57+
:productNameFull: WildFly Application Server
58+
:ProductShortName: {productName}
59+
:jbossHomeName: WILDFLY_HOME
60+
:productVersion: 35
61+
:productImageVersion: 35.0
62+
:githubRepoUrl: https://github.com/wildfly/quickstart/
63+
:githubRepoCodeUrl: https://github.com/wildfly/quickstart.git
64+
:WildFlyQuickStartRepoTag: 35.0.0.Final
65+
:DocInfoProductName: Red Hat JBoss Enterprise Application Platform
66+
:DocInfoProductNameURL: red_hat_jboss_enterprise_application_platform
67+
:DocInfoProductNumber: 8.1
68+
:DocInfoPreviousProductName: jboss-enterprise-application-platform
69+
:helmRepoName: wildfly
70+
:helmRepoUrl: http://docs.wildfly.org/wildfly-charts/
71+
:helmChartName: wildfly/wildfly
72+
// END ifndef::ProductRelease,EAPCDRelease,EAPXPRelease[]
73+
endif::[]
74+
75+
:source: {githubRepoUrl}
76+
77+
// Values for Openshift S2i sections attributes
78+
:CDProductName: {productNameFull} for OpenShift
79+
:CDProductShortName: {ProductShortName} for OpenShift
80+
:CDProductTitle: {CDProductName}
81+
:CDProductNameSentence: Openshift release for {ProductShortName}
82+
:CDProductAcronym: {CDProductShortName}
83+
:CDProductVersion: {productVersion}
84+
:EapForOpenshiftBookName: {productNameFull} for OpenShift
85+
:EapForOpenshiftOnlineBookName: {EapForOpenshiftBookName} Online
86+
:xpaasproduct: {productNameFull} for OpenShift
87+
:xpaasproductOpenShiftOnline: {xpaasproduct} Online
88+
:xpaasproduct-shortname: {CDProductShortName}
89+
:xpaasproductOpenShiftOnline-shortname: {xpaasproduct-shortname} Online
90+
:ContainerRegistryName: Red Hat Container Registry
91+
:EapForOpenshiftBookName: Getting Started with {ProductShortName} for OpenShift Container Platform
92+
:EapForOpenshiftOnlineBookName: Getting Started with {ProductShortName} for OpenShift Online
93+
:OpenShiftOnlinePlatformName: Red Hat OpenShift Container Platform
94+
:OpenShiftOnlineName: Red Hat OpenShift Online
95+
:ImagePrefixVersion: eap81
96+
:ImageandTemplateImportBaseURL: https://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates
97+
:ImageandTemplateImportURL: {ImageandTemplateImportBaseURL}/{ImagePrefixVersion}/
98+
:BuildImageStream: jboss-{ImagePrefixVersion}-openjdk11-openshift
99+
:RuntimeImageStream: jboss-{ImagePrefixVersion}-openjdk11-runtime-openshift
100+
101+
// OpenShift repository and reference for quickstarts
102+
:EAPQuickStartRepo: https://github.com/jboss-developer/jboss-eap-quickstarts
103+
:EAPQuickStartRepoRef: 8.0.x
104+
:EAPQuickStartRepoTag: EAP_8.0.0.GA
105+
// Links to the OpenShift documentation
106+
:LinkOpenShiftGuide: https://access.redhat.com/documentation/en-us/{DocInfoProductNameURL}/{DocInfoProductNumber}/html-single/getting_started_with_jboss_eap_for_openshift_container_platform/
107+
:LinkOpenShiftOnlineGuide: https://access.redhat.com/documentation/en-us/{DocInfoProductNameURL}/{DocInfoProductNumber}/html-single/getting_started_with_jboss_eap_for_openshift_online/
108+
109+
ifdef::EAPXPRelease[]
110+
// Attributes for XP releases
111+
:EapForOpenshiftBookName: {productNameFull} for OpenShift
112+
:EapForOpenshiftOnlineBookName: {productNameFull} for OpenShift Online
113+
:xpaasproduct: {productNameFull} for OpenShift
114+
:xpaasproductOpenShiftOnline: {productNameFull} for OpenShift Online
115+
:xpaasproduct-shortname: {ProductShortName} for OpenShift
116+
:xpaasproductOpenShiftOnline-shortname: {ProductShortName} for OpenShift Online
117+
:ContainerRegistryName: Red Hat Container Registry
118+
:EapForOpenshiftBookName: {productNameFull} for OpenShift
119+
:EapForOpenshiftOnlineBookName: {productNameFull} for OpenShift Online
120+
:ImagePrefixVersion: eap-xp6
121+
:ImageandTemplateImportURL: {ImageandTemplateImportBaseURL}/{ImagePrefixVersion}/
122+
:BuildImageStream: jboss-{ImagePrefixVersion}-openjdk11-openshift
123+
:RuntimeImageStream: jboss-{ImagePrefixVersion}-openjdk11-runtime-openshift
124+
// OpenShift repository and reference for quickstarts
125+
:EAPQuickStartRepoRef: xp-6.0.x
126+
// Links to the OpenShift documentation
127+
:LinkOpenShiftGuide: https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/{DocInfoProductNumber}/html/using_eclipse_microprofile_in_jboss_eap/using-the-openshift-image-for-jboss-eap-xp_default
128+
:LinkOpenShiftOnlineGuide: https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/{DocInfoProductNumber}/html/using_eclipse_microprofile_in_jboss_eap/using-the-openshift-image-for-jboss-eap-xp_default
129+
endif::[]
130+
131+
ifndef::ProductRelease,EAPCDRelease,EAPXPRelease[]
132+
:ImageandTemplateImportURL: https://raw.githubusercontent.com/wildfly/wildfly-s2i/v{productVersion}.0/
133+
endif::[]
134+
135+
//*************************
136+
// Other values
137+
//*************************
138+
:buildRequirements: Java SE 17.0 or later, and Maven 3.6.0 or later
139+
:jbdsEapServerName: Red Hat JBoss Enterprise Application Platform 8.0
140+
:javaVersion: Jakarta EE 10
141+
ifdef::EAPXPRelease[]
142+
:javaVersion: Eclipse MicroProfile
143+
endif::[]
144+
:githubRepoBranch: master
145+
:guidesBaseUrl: https://github.com/jboss-developer/jboss-developer-shared-resources/blob/master/guides/
146+
:useEclipseUrl: {guidesBaseUrl}USE_JBDS.adoc#use_red_hat_jboss_developer_studio_or_eclipse_to_run_the_quickstarts
147+
:useEclipseDeployJavaClientDocUrl: {guidesBaseUrl}USE_JBDS.adoc#deploy_and_undeploy_a_quickstart_containing_server_and_java_client_projects
148+
:useEclipseDeployEARDocUrl: {guidesBaseUrl}USE_JBDS.adoc#deploy_and_undeploy_a_quickstart_ear_project
149+
:useProductHomeDocUrl: {guidesBaseUrl}USE_OF_{jbossHomeName}.adoc#use_of_product_home_and_jboss_home_variables
150+
:configureMavenDocUrl: {guidesBaseUrl}CONFIGURE_MAVEN_JBOSS_EAP.adoc#configure_maven_to_build_and_deploy_the_quickstarts
151+
:addUserDocUrl: {guidesBaseUrl}CREATE_USERS.adoc#create_users_required_by_the_quickstarts
152+
:addApplicationUserDocUrl: {guidesBaseUrl}CREATE_USERS.adoc#add_an_application_user
153+
:addManagementUserDocUrl: {guidesBaseUrl}CREATE_USERS.adoc#add_an_management_user
154+
:startServerDocUrl: {guidesBaseUrl}START_JBOSS_EAP.adoc#start_the_jboss_eap_server
155+
:configurePostgresDocUrl: {guidesBaseUrl}CONFIGURE_POSTGRESQL_JBOSS_EAP.adoc#configure_the_postgresql_database_for_use_with_the_quickstarts
156+
:configurePostgresDownloadDocUrl: {guidesBaseUrl}CONFIGURE_POSTGRESQL_JBOSS_EAP.adoc#download_and_install_postgresql
157+
:configurePostgresCreateUserDocUrl: {guidesBaseUrl}CONFIGURE_POSTGRESQL_JBOSS_EAP.adoc#create_a_database_user
158+
:configurePostgresAddModuleDocUrl: {guidesBaseUrl}CONFIGURE_POSTGRESQL_JBOSS_EAP.adoc#add_the_postgres_module_to_the_jboss_eap_server
159+
:configurePostgresDriverDocUrl: {guidesBaseUrl}CONFIGURE_POSTGRESQL_JBOSS_EAP.adoc#configure_the_postgresql_driver_in_the_jboss_eap_server
160+
:configureBytemanDownloadDocUrl: {guidesBaseUrl}CONFIGURE_BYTEMAN.adoc#download_and_configure_byteman
161+
:configureBytemanDisableDocUrl: {guidesBaseUrl}CONFIGURE_BYTEMAN.adoc#disable_the_byteman_script
162+
:configureBytemanClearDocUrl: {guidesBaseUrl}CONFIGURE_BYTEMAN.adoc#clear_the_transaction_object_store
163+
:configureBytemanQuickstartDocUrl: {guidesBaseUrl}CONFIGURE_BYTEMAN.adoc#configure_byteman_for_use_with_the_quickstarts
164+
:configureBytemanHaltDocUrl: {guidesBaseUrl}CONFIGURE_BYTEMAN.adoc#use_byteman_to_halt_the_application[
165+
:configureBytemanQuickstartsDocUrl: {guidesBaseUrl}CONFIGURE_BYTEMAN.adoc#configure_byteman_for_use_with_the_quickstarts
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[[back_up_managed_domain_configuration]]
2+
= Back Up the {productName} Managed Domain Configuration
3+
//******************************************************************************
4+
// Include this template if your quickstart runs in a managed domain and
5+
// needs to back up the server configuration files before running
6+
// a CLI script to modify the server.
7+
//******************************************************************************
8+
9+
Before you begin, back up your server configuration files.
10+
11+
. If it is running, stop the {productName} server.
12+
. Back up the following files:
13+
+
14+
[source,subs="+quotes,attributes+",options="nowrap"]
15+
----
16+
__{jbossHomeName}__/domain/configuration/domain.xml
17+
__{jbossHomeName}__/domain/configuration/host.xml
18+
----
19+
20+
After you have completed testing this quickstart, you can replace these file to restore the server to its original configuration.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[[back_up_standalone_server_configuration]]
2+
= Back Up the {productName} Standalone Server Configuration
3+
//******************************************************************************
4+
// Include this template if your quickstart runs in a standalone server and
5+
// needs to back up the server configuration file before running
6+
// a CLI script to modify the server.
7+
//******************************************************************************
8+
// Define the attributes needed for this topic.
9+
include::define-standalone-server-attributes.adoc[]
10+
11+
Before you begin, back up your server configuration file.
12+
13+
. If it is running, stop the {productName} server.
14+
. Back up the `__{jbossHomeName}__/{configFileName}` file.
15+
16+
After you have completed testing this quickstart, you can replace this file to restore the server to its original configuration.
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
[[build_and_deploy_the_quickstart]]
2+
= Build and Deploy the Quickstart
3+
//******************************************************************************
4+
// Include this template if your quickstart does a normal deployment of a archive.
5+
//
6+
// * Define the `archiveType` variable in the quickstart README file.
7+
// Supported values:
8+
// :archiveType: ear
9+
// :archiveType: war
10+
// :archiveType: jar
11+
//
12+
// * To override the archive name, which defaults to the {artifactId),
13+
// define the `archiveName` variable, for example:
14+
// :archiveName: {artifactId}-service
15+
//
16+
// * To override the archive output directory,
17+
// define the `archiveDir` variable, for example:
18+
// :archiveDir: ear/target
19+
//
20+
// * To override the Maven command, define the `mavenCommand` variable,
21+
// for example:
22+
// :mavenCommand: clean install wildfly:deploy
23+
//******************************************************************************
24+
25+
// The archive name defaults to the artifactId if not overridden
26+
ifndef::archiveName[]
27+
:archiveName: {artifactId}
28+
endif::archiveName[]
29+
30+
// The archive type defaults to war if not overridden
31+
ifndef::archiveType[]
32+
:archiveType: war
33+
endif::archiveType[]
34+
35+
// Define the archive file name as the concatenation of "archiveName" + "." + "archiveType+
36+
:archiveFileName: {archiveName}.{archiveType}
37+
38+
// If they have not defined the target archive directory, make it the default for the archive type.
39+
ifndef::archiveDir[]
40+
41+
ifeval::["{archiveType}"=="ear"]
42+
:archiveDir: {artifactId}/ear/target
43+
endif::[]
44+
45+
ifeval::["{archiveType}"=="war"]
46+
:archiveDir: {artifactId}/target
47+
endif::[]
48+
49+
ifeval::["{archiveType}"=="jar"]
50+
:archiveDir: {artifactId}/target
51+
endif::[]
52+
53+
endif::archiveDir[]
54+
55+
ifndef::mavenCommand[]
56+
ifeval::["{archiveType}"=="ear"]
57+
:mavenCommand: clean install
58+
endif::[]
59+
60+
ifeval::["{archiveType}"=="war"]
61+
:mavenCommand: clean package
62+
endif::[]
63+
64+
ifeval::["{archiveType}"=="jar"]
65+
:mavenCommand: clean install
66+
endif::[]
67+
68+
endif::mavenCommand[]
69+
70+
. Make sure {productName} server is started.
71+
. Open a terminal and navigate to the root directory of this quickstart.
72+
ifdef::reactive-messaging[]
73+
. Run this command to enable the MicroProfile Reactive Messaging functionality on the server
74+
+
75+
[source,subs="attributes+",options="nowrap"]
76+
----
77+
$ __{jbossHomeName}__/bin/jboss-cli.sh --connect --file=enable-reactive-messaging.cli
78+
----
79+
endif::reactive-messaging[]
80+
. Type the following command to build the quickstart.
81+
+
82+
[source,subs="attributes+",options="nowrap"]
83+
----
84+
$ mvn {mavenCommand}
85+
----
86+
87+
. Type the following command to deploy the quickstart.
88+
+
89+
[source,subs="attributes+",options="nowrap"]
90+
----
91+
$ mvn wildfly:deploy
92+
----
93+
94+
This deploys the `{archiveDir}/{archiveFileName}` to the running instance of the server.
95+
96+
You should see a message in the server log indicating that the archive deployed successfully.

0 commit comments

Comments
 (0)