Starting the Air-gapped Repository

Describes how to start an air-gapped repository.

Prerequisites

The air-gapped repository must have been created. See Creating an Air-gapped Repository to create an air-gapped repository.

About this task

A successful create already starts the serving container. Use start on the local mirror host to start an existing stopped managed container. The create command does not recreate a removed container or populate an uninitialized repository.

Command Syntax

./airgap-repository start [--runtime auto|docker|podman] [--container-name NAME] [--advertise-host HOST] [--port PORT] [--dry-run]

Command Help

./airgap-repository start --help
./airgap-repository start -h

Command Parameters

Table 1. airgap-repository start command parameters
Parameter Required? Description
--runtime auto|docker|podman No The runtime selection. Default: auto. Use docker or podman explicitly when required.
--container-name NAME No The managed container name. Default: mapr-airgap-repository.
--advertise-host HOST Recommended Client-reachable hostname or IP printed in the repository URL.
--port PORT No

The port number.

Override the printed URL port only; normally use the detected existing mapping. This command does not validate the override’s numeric range.
--dry-run No Use the option to preview the operation without removal of the repository container.
-h, --help No Use the option to view command help.

Run the command to start the air-gapped repository on the node on which your air-gapped repository is created.

NOTE
The following command does not synchronize with the upstream product repository.

Procedure

Run the airgap-repository start binary on the command line:
./airgap-repository start \
  --runtime docker \
  --advertise-host mirror.example.test

Results

The air-gapped repository starts and is available to download packages for installation of HPE Data Fabric.

The URL of the air-gapped repository is displayed in the output.

You should see an output similar to the following:
INFO: Using container runtime: docker
mapr-airgap-repository
Air-gap repository URL: http://mirror.example.test:8080