|
| 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 | +---- |
0 commit comments