Skip to content

Commit c5f738a

Browse files
authored
Merge pull request #29 from anarnold97/mta-disconnected-install
MTA-3245: Document disconnected usage of MTA CLI
2 parents e406d39 + 7c6cf08 commit c5f738a

File tree

3 files changed

+95
-1
lines changed

3 files changed

+95
-1
lines changed

docs/cli-guide/master.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ include::topics/about-cli.adoc[leveloffset=+2]
4040
// Install the CLI
4141
include::topics/installing-cli-tool.adoc[leveloffset=+2]
4242

43+
// Install in disconnected environment
44+
include::topics/installing-mta-disconnected-environment.adoc[leveloffset=+2]
45+
4346
// CLI known issues
4447
include::topics/cli-tool-known-issues.adoc[leveloffset=+3]
4548

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * docs/cli-guide/master.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="installing-mta-disconnected-environment_{context}"]
7+
= Installing {ProductShortName} on a disconnected environment
8+
9+
On a connected device, first download and save the {ProductShortName} binary. Then download and save the Podman images, the {ProductShortName} CLI image and the provider image that you need.
10+
11+
* Download the required {ProductShortName} CLI binary from the link:https://developers.redhat.com/products/mta/download[{ProductName} Red Hat Developer page]:
12+
** CLI for Linux x86_64
13+
** CLI for Linux aarch64
14+
** CLI for MacOS x86_64
15+
** CLI for MacOS aarch64
16+
** CLI for Windows x86_64
17+
** CLI for Windows aarch64
18+
19+
* On a connected device, download and save the images.
20+
21+
* Copy the binary to the disconnected device.
22+
23+
* In addition, you must save and import the associated container images by using Podman.
24+
25+
== Downloading the Podman images
26+
27+
.Prerequisites
28+
29+
* Podman installed. For more information, see link:https://podman.io/[Podman].
30+
31+
.Procedure
32+
33+
. Use Podman to authenticate to link:registry.redhat.io[registry.redhat.io]:
34+
+
35+
[source,terminal]
36+
----
37+
$ podman login registry.redhat.io
38+
----
39+
40+
. Enter your username and then your password for registry.redhat.io:
41+
+
42+
[source,terminal]
43+
----
44+
Username: <registry_service_account_username>
45+
Password: <registry_service_account_password>
46+
----
47+
+
48+
You should see the following output:
49+
+
50+
[source,terminal]
51+
----
52+
Login Succeeded!
53+
----
54+
55+
. Use Podman to pull the image from the registry:
56+
+
57+
[source,terminal]
58+
----
59+
$ podman pull registry.redhat.io/mta/mta-cli-rhel9:7.1.0
60+
----
61+
62+
. Use Podman to pull the provider image that you need from the registry:
63+
64+
.. For Java, run:
65+
+
66+
[source,terminal]
67+
----
68+
$ podman pull registry.redhat.io/mta/mta-java-external-provider-rhel9:7.1.0
69+
----
70+
.. For .NET, run:
71+
+
72+
[source,terminal]
73+
----
74+
$ podman pull registry.redhat.io/mta/mta-dotnet-external-provider-rhel9:7.1.0
75+
----
76+
77+
. Save the images:
78+
+
79+
[source,terminal]
80+
----
81+
$ podman save <image> -o <my_image.image>
82+
----
83+
84+
. Copy the `.image` file and the binary onto a USB or directly to the file system of the disconnected device.
85+
86+
. On the disconnected device, run
87+
+
88+
[source,terminal]
89+
----
90+
$ podman load --input <my_image.image>
91+
----

docs/topics/mta-cli-run.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The following command analyzes the link:https://github.com/windup/windup/blob/ma
3939
----
4040
$ <{ProductShortName}_HOME>/{mta-cli} analyze \
4141
--input /path/to/jee-example-app-1.0.0.ear \
42-
--output /path/to/report-output/ --source eap5 --target eap7 \
42+
--output /path/to/report-output/ --source eap5 --target eap7
4343
----
4444
[]
4545

0 commit comments

Comments
 (0)