Skip to content

Commit 4c6ee29

Browse files
authored
Merge branch 'main' into 7.3.0_Release-notes
2 parents 32b4c84 + ad1a305 commit 4c6ee29

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1772
-616
lines changed

docs/cli-guide/master-docinfo.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<title>CLI Guide</title>
22
<productname>{DocInfoProductName}</productname>
33
<productnumber>{DocInfoProductNumber}</productnumber>
4-
<subtitle>Learn how to use the {ProductName} {CLIName} to migrate your applications.</subtitle>
4+
<subtitle>Using the {ProductName} command-line interface to migrate your applications</subtitle>
55
<abstract>
6-
<para>This guide describes how to use the {ProductName} {CLIName} to simplify migration of Java applications.</para>
6+
<para>By using the {ProductFullName} command-line interface (CLI), you can assess and prioritize migration and modernization efforts for applications written in different languages. You can use the CLI to customize {ProductShortName} analysis options or integrate with external automation tools.</para>
77
</abstract>
88
<authorgroup>
99
<orgname>Red Hat Customer Content Services</orgname>

docs/cli-guide/master.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,18 @@ include::topics/mta-review-reports.adoc[leveloffset=+1]
101101
// Mavenize Your Application
102102
// include::topics/mavenize.adoc[leveloffset=+1]
103103

104+
//Generating platform Assets for application deployment
105+
include::topics/mta-cli-generate-assets.adoc[leveloffset=+1]
106+
107+
//Generating the discovery manifest
108+
include::topics/mta-cli-generate-discovery-manifest.adoc[leveloffset=+2]
109+
110+
//Generating the deployment manifest
111+
include::topics/mta-cli-generate-deployment-manifest.adoc[leveloffset=+2]
112+
113+
//Generate asset for a Java application
114+
include::topics/mta-cli-generate-deployment-asset-example.adoc[leveloffset=+2]
115+
104116
// Optimize {ProductShortName} Performance
105117
include::topics/mta-optimize-performance.adoc[leveloffset=+1]
106118

docs/rules-development-guide/master.adoc

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,68 @@ include::topics/about-rules.adoc[leveloffset=+2]
3131

3232
Each analyzer rule is a set of instructions that are used to analyze source code and detect issues that are problematic for migration.
3333

34-
The analyzer parses user-provided rules, applies them to applications' source code, and generates issues for matched rules. A collection of one or more rules forms a ruleset. Creating rulesets provides a way of organizing multiple rules that achieve a common goal. The analyzer CLI takes rulesets as input arguments.
34+
The analyzer parses user-provided rules, applies them to applications' source code, and generates issues for matched rules.
35+
36+
A collection of one or more rules forms a ruleset. Creating rulesets provides a way of organizing multiple rules that achieve a common goal.
37+
38+
The analyzer CLI takes rulesets as input arguments.
39+
3540

3641
include::topics/yaml-rule-structure-syntax.adoc[leveloffset=+2]
3742

43+
include::topics/yaml-rule-labels.adoc[leveloffset=+2]
44+
3845
[id="creating-basic-yaml-rules_{context}"]
3946
=== Creating a basic YAML rule
4047

4148
This section describes how to create a basic {ProductShortName} YAML rule. This assumes that you already have {ProductShortName} installed. See the {ProductShortName} {ProductDocUserGuideURL}[_{UserCLIBookName}_] for installation instructions.
4249

4350
include::topics/create-basic-yaml-rule-template.adoc[leveloffset=+3]
4451

52+
include::topics/yaml-rule-categories.adoc[leveloffset=+3]
53+
54+
include::topics/yaml-rule-actions.adoc[leveloffset=+3]
55+
56+
include::topics/yaml-rule-conditions.adoc[leveloffset=+3]
57+
58+
include::topics/yaml-tag-actions.adoc[leveloffset=+3]
59+
60+
include::topics/yaml-message-actions.adoc[leveloffset=+3]
61+
62+
include::topics/yaml-rule-hyperlinks.adoc[leveloffset=+3]
63+
64+
include::topics/yaml-provider-conditions.adoc[leveloffset=+3]
65+
66+
include::topics/yaml-builin-provider.adoc[leveloffset=+4]
67+
68+
include::topics/yaml-java-provider.adoc[leveloffset=+4]
69+
70+
include::topics/yaml-java-locations.adoc[leveloffset=+4]
71+
72+
include::topics/yaml-annotation-inspection.adoc[leveloffset=+4]
73+
74+
include::topics/yaml-go-provider.adoc[leveloffset=+4]
75+
76+
include::topics/yaml-dotnet-provider.adoc[leveloffset=+4]
77+
78+
include::topics/yaml-condition-patterns.adoc[leveloffset=+3]
79+
80+
include::topics/yaml-custom-variables.adoc[leveloffset=+3]
81+
82+
include::topics/yaml-logical-conditions.adoc[leveloffset=+3]
83+
84+
include::topics/yaml-and-condition.adoc[leveloffset=+4]
85+
86+
include::topics/yaml-or-condition.adoc[leveloffset=+4]
87+
88+
include::topics/yaml-chaining-condition-variables.adoc[leveloffset=+4]
89+
90+
include::topics/yaml-chaining-java-provider.adoc[leveloffset=+5]
91+
92+
include::topics/yaml-rulesets.adoc[leveloffset=+3]
93+
94+
95+
4596
include::topics/create-basic-yaml-ruleset-template.adoc[leveloffset=+3]
4697

4798
include::topics/create-yaml-rule.adoc[leveloffset=+3]

docs/topics/create-yaml-rule.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ _Example_
173173
when:
174174
java.referenced:
175175
location: PACKAGE
176-
pattern: org.jboss.*
176+
pattern: org.jboss*
177177
----
178178

179179
. Create an `AND` or `OR` condition

docs/topics/installing-cli-tool.adoc

Lines changed: 46 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,59 @@ You can install the {CLINameTitle} on Linux, Windows, or macOS operating systems
1111

1212
[IMPORTANT]
1313
====
14-
Starting from {ProductShortName} 7.2.0, you can run the application analysis for Java applications in the containerless mode.
14+
15+
Starting from {ProductShortName} 7.2.0, you can run the application analysis for Java applications in the containerless mode.
1516
1617
The containerless mode is set by default and is used automatically if all requirements are met. For more information, see xref:running-the-containerless-mta-cli_cli-guide[Running the containerless CLI].
1718
1819
However, if you want to analyze applications in languages other than Java or, for example, use xref:mta-cli-transform_cli-guide[transformation commands], you still need to use containers.
1920
====
2021

21-
.Prerequisites
22+
.Prerequisites for containerized CLI
23+
24+
The following are the prerequisites for the {ProductFullName} CLI installation (container):
2225

2326
* Red Hat Container Registry Authentication for `registry.redhat.io`. Red Hat distributes container images from `registry.redhat.io`, which requires authentication. For more details, see link:https://access.redhat.com/RegistryAuthentication[Red Hat Container Registry Authentication].
2427

28+
* link:https://podman.io/[Podman] must be installed.
29+
30+
* 8 GB of RAM is required for the {ProductShortName} {CLIName}.
31+
32+
.Prerequisites for containerless CLI
33+
34+
The following are the prerequisites if you want to to run {ProductShortName} {CLIName} as in xref:running-the-containerless-mta-cli_cli-guide[containerless CLI] mode:
35+
36+
* Java Development Kit (JDK) is installed.
37+
+
38+
{ProductShortName} supports the following JDKs:
39+
40+
** Oracle JDK 17 or later
41+
** Eclipse Temurin™ JDK 17 or later
42+
** OpenJDK 17 or later
43+
+
44+
If you install OpenJDK on {op-system-base-full} or Fedora, the JDK requires a compiler provided by the `devel` package to also be installed, as having only the Java Runtime (JRE) installed causes issues during analysis. For more information about installing Red Hat build of OpenJDK 17 on {op-system-base-full}, see link:https://docs.redhat.com/en/documentation/red_hat_build_of_openjdk/17/html-single/installing_and_using_red_hat_build_of_openjdk_17_on_rhel/index#installing-jre-on-rhel-using-archive_openjdk[Installing Red Hat build of OpenJDK on RHEL by using yum].
45+
46+
* You must set the `JAVA_HOME` and the `PATH` environment variables.
47+
48+
* Maven 3.9.9 installed, and the bin directory is added to the `PATH` environment variable. Setting the path and environment variables depends on the operating system you are using. For more information about installing Maven, see link:https://maven.apache.org/install.html[Apache Maven installation].
49+
50+
* macOS installation requires:
51+
52+
** The value of `maxproc` must be `2048` or greater.
53+
2554
[id="installing-downloadable-cli-zip_{context}"]
2655
== Installing the {CLINameTitle} `.zip` file
2756

2857
.Procedure
2958

3059
. Navigate to the link:{DevDownloadPageURL}[{ProductShortName} Download page] and download the OS-specific CLI file or the `src` file:
3160
+
32-
* {ProductShortNameLower}-{ProductVersion}-cli-linux.zip
33-
* {ProductShortNameLower}-{ProductVersion}-cli-macos.zip
34-
* {ProductShortNameLower}-{ProductVersion}-cli-windows.zip
61+
* {ProductShortNameLower}-{ProductVersion}-cli-linux-amd64.zip
62+
* {ProductShortNameLower}-{ProductVersion}-cli-linux-arm64.zip
63+
* {ProductShortNameLower}-{ProductVersion}-cli-darwin-amd64.zip
64+
* {ProductShortNameLower}-{ProductVersion}-cli-darwin-arm64.zip
65+
* {ProductShortNameLower}-{ProductVersion}-cli-windows-amd64.zip
66+
* {ProductShortNameLower}-{ProductVersion}-cli-windows-arm64.zip
3567
* {ProductShortNameLower}-{ProductVersion}-cli-src.zip
3668

3769
. Extract the `.zip` file to the `.kantra` directory inside your `$HOME` directory. The `.zip` file extracts the *mta-cli* binary, along with other required directories and files.
@@ -42,7 +74,12 @@ When you encounter `<{ProductShortName}_HOME>` in this guide, replace it with th
4274
[id="installing-using-podman_{context}"]
4375
== Installing the {CLINameTitle} by using Podman
4476

45-
You can install the {CLINameTitle} using `podman pull`.
77+
You can install the containerized {CLINameTitle} using `podman pull`.
78+
79+
[NOTE]
80+
====
81+
You cannot install the containerless {CLINameTitle} using Podman as this procedure does not include pulling and unpacking the dependencies that are included in the `.zip` file.
82+
====
4683

4784
.Prerequisites
4885

@@ -195,17 +232,16 @@ Server: Docker Desktop 4.32.0 (157355)
195232
----
196233
PS C:\Users\<your_user_name>> $env:PODMAN_BIN="C:\Windows\system32\docker.exe"
197234
----
198-
199235
. Set the `DOTNET_PROVIDER_IMG` environment variable to use the upstream `dotnet-external-provider`:
200236
+
201237
[source,powershell]
202238
----
203-
PS C:\Users\<your_user_name>> $env:DOTNET_PROVIDER_IMG="quay.io/konveyor/dotnet-external-provider:v0.5.0"
239+
PS C:\Users\<your_user_name>> $env:DOTNET_PROVIDER_IMG="registry.redhat.io/mta/mta-dotnet-external-provider-rhel9:7.1.0"
204240
----
205-
206241
. Set the `RUNNER_IMG` environment variable to use the upstream image:
207242
+
208243
[source,powershell]
209244
----
210-
PS C:\Users\<your_user_name>> $env:RUNNER_IMG="quay.io/konveyor/kantra:v0.5.0"
245+
# double-check reference
246+
PS C:\Users\<your_user_name>> $env:RUNNER_IMG="registry.redhat.io/mta/mta-cli-rhel9:7.1.0"
211247
----

docs/topics/mta-7-installing-web-console-on-openshift.adoc

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ The most commonly used CR settings are listed in this table:
151151
|Maximum number of CPUs the pod is allowed to use
152152

153153
|`analyzer_container_limits_memory`
154-
|`4Gi`
154+
|`1Gi`
155155
|Maximum amount of memory the pod is allowed to use. You can increase this limit if the pod displays `OOMKilled` errors.
156156

157157
|`analyzer_container_requests_cpu`
158158
|`1`
159159
|Minimum number of CPUs the pod needs to run
160160

161161
|`analyzer_container_requests_memory`
162-
|`4Gi`
162+
|`1Gi`
163163
|Minimum amount of memory the pod needs to run
164164

165165
|`ui_container_limits_cpu`
@@ -267,34 +267,35 @@ To prevent out-of-memory events and protect nodes, use the `--eviction-hard` set
267267
The amount of memory available for running pods on this node is 28.9 GB. This amount is calculated by subtracting the `system-reserved` and `eviction-hard` values from the overall capacity of the node. If the memory usage exceeds this amount, the node starts evicting pods.
268268

269269

270-
[id="mta-7-red-hat-single-sign-on_{context}"]
271-
== Red Hat Single Sign-On
270+
[id="mta-7-red-hat-build-of-keycloak_{context}"]
271+
== Red Hat Build of Keycloak
272272

273-
The {ProductShortName} uses link:https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.6[Red Hat Single Sign-On (RHSSO)] instance for user authentication and authorization.
273+
The {ProductShortName} 7.3.0 uses link:https://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/26.0[{rhbk-first}] instance for user authentication and authorization.
274274

275-
The {ProductShortName} operator manages the RHSSO instance and configures a dedicated link:https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.6/html/server_administration_guide/configuring_realms[realm] with necessary roles and permissions.
275+
The {ProductShortName} operator manages the {rhbk-short} instance and configures a dedicated link:https://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/26.0/html/server_administration_guide/configuring-realms[realm] with necessary roles and permissions.
276276

277-
{ProductShortName}-managed RHSSO instance allows you to perform advanced RHSSO configurations, such as link:https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.6/html/server_administration_guide/user-storage-federation#adding_a_provider[adding a provider for User Federation] or link:https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.6/html/server_administration_guide/identity_broker[integrating identity providers]. To access the link:https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.6/html/server_administration_guide/configuring_realms#using_the_admin_console[RHSSO Admin Console], enter the URL https://<_route_>/auth/admin in your browser by replacing <route> with the {ProductShortName} web console address.
277+
{ProductShortName}-managed {rhbk-short} instance allows you to perform advanced {rhbk-short} configurations, such as link:https://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/26.0/html/server_administration_guide/user-storage-federation#adding_a_provider[adding a provider for User Federation] or link:https://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/26.0/html/server_administration_guide/identity_broker[integrating identity providers]. To access the link:hhttps://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/26.0/html/server_administration_guide/configuring-realms#using_the_admin_console[{rhbk-short} Admin Console], enter the URL https://<_route_>/auth/admin in your browser by replacing < _route_ > with the {ProductShortName} web console address.
278278

279279
Example:
280280

281281
* MTA web console: https://mta-openshiftmta.example.com/
282-
* RHSSO Admin console: https://mta-openshiftmta.example.com/auth/admin
282+
* {rhbk-short} Admin console: https://mta-openshiftmta.example.com/auth/admin
283283

284-
The admin credentials for RHSSO are stored in a secret file named `credential-mta-rhsso` in the namespace where {ProductShortName} is installed.
284+
The admin credentials for {rhbk-short} are stored in a secret file named `mta-keycloak-rhbk` in the namespace where {ProductShortName} is installed.
285285

286286
To retrieve your admin credentials, run the following command:
287+
[source,terminal]
287288
----
288-
oc get secret credential-mta-rhsso -o yaml
289+
$ oc get secret mta-keycloak-rhbk -n openshift-mta -o json| jq -r '.data.password | @base64d'
289290
----
290291

291-
To create a dedicated route for the RHSSO instance, set the `rhsso_external_access` parameter to `true` in the Tackle custom resource (CR) for {ProductShortName}.
292+
//To create a dedicated route for the {rhbk-short} instance, set the `rhsso_external_access` parameter to `true` in the Tackle custom resource (CR) for {ProductShortName}. #QE asked to remove this line.
292293

293-
include::analyzer-rbac-snippet.adoc[]
294+
//include::analyzer-rbac-snippet.adoc[]
294295

295296
.Additional resources
296-
* link:https://docs.redhat.com/en/documentation/red_hat_single_sign-on/7.6/html-single/server_administration_guide/index#ldap[Configuring LDAP and Active Directory in RHSSO]
297-
* link:https://access.redhat.com/documentation/en-us/red_hat_single_sign-on/7.6/html/server_administration_guide/red_hat_single_sign_on_features_and_concepts[Red Hat Single Sign-On features and concepts]
297+
* link:https://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/26.0/html/server_administration_guide/user-storage-federation#ldap[Configuring LDAP and Active Directory in {rhbk-short}]
298+
* link:https://docs.redhat.com/en/documentation/red_hat_build_of_keycloak/26.0/html/server_administration_guide/red_hat_build_of_keycloak_features_and_concepts[Red Hat Build of Keycloak features and concepts]
298299

299300
[id="mta-roles-personas-users-permissions_{context}"]
300301
=== Roles, Personas, Users, and Permissions
@@ -317,9 +318,9 @@ include::analyzer-rbac-snippet.adoc[]
317318
|Migrator
318319
|====
319320

320-
The roles are already defined in your RHSSO instance. You do not need to create them.
321+
The roles are already defined in your {rhbk-short} instance. You do not need to create them.
321322

322-
If you are an {ProductShortName} administrator, you can create users in your RHSSO and assign each user one or more roles, one role per persona.
323+
If you are an {ProductShortName} administrator, you can create users in your {rhbk-short} and assign each user one or more roles, one role per persona.
323324

324325
[id="mta-roles-personas-ui-views_{context}"]
325326
==== Roles, personas, and access to {WebName} views
@@ -360,7 +361,7 @@ The ability of administrators, architects, and migrators to access the *Administ
360361
[id="mta-roles-permissions_{context}"]
361362
==== Roles and permissions
362363

363-
The following table contains the roles and permissions (scopes) that {ProductShortName} seeds the managed RHSSO instance with:
364+
The following table contains the roles and permissions (scopes) that {ProductShortName} seeds the managed {rhbk-short} instance with:
364365

365366
[width="100%",cols="34%,33%,33%",]
366367
|====

docs/topics/mta-cli-analyze.adoc

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Extracting the list of dependencies from compiled Java binaries is not always po
1717

1818
[source,terminal,subs="attributes+"]
1919
----
20-
{mta-cli} analyze --input=<path_to_source_code> --output=<path_to_output_directory>
20+
{mta-cli} analyze --input <path_to_source_code> --output <path_to_output_directory>
2121
----
2222

2323
All flags:
@@ -50,6 +50,9 @@ Flags:
5050
--jaeger-endpoint (string) Jaeger endpoint to collect traces.
5151
--json-output Create analysis and dependency
5252
output as JSON.
53+
--list-languages List all langauges in the source
54+
application. This flag is not
55+
supported for binary applications.
5356
--list-sources List available migration sources.
5457
--list-targets List available migration targets.
5558
-l, --label-selector (string) Run rules based on specified label
@@ -103,17 +106,24 @@ The list of flags above does not include the `--bulk` flag because this flag is
103106
.Usage example
104107

105108
. Get an example application to run analysis on.
109+
. List all languages in the source application:
110+
+
111+
[source,terminal,subs="attributes+"]
112+
----
113+
$ {mta-cli} analyze --input <path_to_application> --list-languages
114+
----
115+
+
106116
. List available target technologies.
107117
+
108118
[source,terminal,subs="attributes+"]
109119
----
110-
{mta-cli} analyze --list-targets
120+
$ {mta-cli} analyze --list-targets
111121
----
112122
. Run an analysis with a specified target technology, for example `cloud-readiness`.
113123
+
114124
[source,terminal,subs="attributes+"]
115125
----
116-
{mta-cli} analyze --input=<path-to/example-applications/example-1> --output=<path-to-output-dir> --target=cloud-readiness
126+
$ {mta-cli} analyze --input <path-to/example-applications/example-1> --output <path-to-output-dir> --target cloud-readiness
117127
----
118128
. Several analysis reports are created in your specified output path:
119129
+

docs/topics/mta-cli-args.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ a|`-l`, `--label-selector`
7676
|String
7777
|Flag to run rules based on a specified label selector expression.
7878

79+
a|`--list-languages`
80+
|
81+
|Flag to list available languages in a source application.
82+
7983
a|`--list-providers`
8084
|
8185
|Flag to list available supported providers.

0 commit comments

Comments
 (0)