This topic provides guidance for installing Anaconda Server in an air-gapped environment.

To successfully install Anaconda Server in an air-gapped environment, you must have already prepared your environment according to the Air gap environment preparation instructions.

Installing Anaconda Server

Obtain Anaconda Server installer location and your Anaconda Server license from your Anaconda representative before proceeding.

  1. Download Anaconda Server:
# Replace <INSTALLER_LOCATION> with the provided installer URL
curl -O <INSTALLER_LOCATION>
  1. Make it executable:
# Replace <INSTALLER> with the installer you just downloaded
chmod +x <INSTALLER>
  1. Run one of the following installation commands. Choose the command that corresponds with your setup:
# Replace <INSTALLER> with the installer you just downloaded
# Replace <FQDN> with the fully qualified domain name of your Anaconda Server instance
sudo bash <INSTALLER> --keep -- --domain <FQDN> --default-user anaconda --custom-cve-source file://opt/anaconda/repo/airgap/cve.zip 2>&1 | tee as.install.output

To include Grafana monitoring dashboards in your installation of Anaconda Server, add the following argument to your installation command:

--grafana-monitor-stack

The installation process creates three distinct user profiles: one for administrating Anaconda Server, one for administrating Keycloak, and one for accessing Prometheus. Login credentials for these profiles are shown during the installer output. Use these credentials for your initial logins, and update them as soon as possible.

Installing packages and CVEs

In a standard installation, Anaconda Server points to a web URL that contains artifacts for your users to view or download. However, on an air-gapped network, you’ll need to provide network directory folder locations for Anaconda Server to look in when searching for artifacts, and populate those folders with artifacts.

The .zip files you downloaded during environment preparation will be the source of your packages for Anaconda Server. Choose a set of commands that correlate with the files you downloaded during environment preparation to move the files to their correct folder location:

  1. Open your Anaconda Server installation directory.
# Replace <INSTALLER> with your installation directory
cd <INSTALLER>
  1. Stop Anaconda Server by running the following command:
docker compose down
  1. Move your airgap .zip files to the correct locations by running the following commands. Choose a set of commands that coorelates with your setup:
  1. Save your work and close the file, then apply your changes to Anaconda Server by running the following:
docker compose up -d
  1. Monitor the status of your instance by running the following command:
docker ps
  1. Once the containers are healthy and running, access your instance of Anaconda Server by navigating to https:://<FQDN>.example.com and complete your installation by entering your license.

Adding hosted miniconda installers

Because air-gapped users do not have access to the internet, Anaconda provides Miniconda installers for your company’s use through Anaconda Server.

  1. Download a valid installers.zip file from the s3 bucket:
curl -O https://anaconda-airgap-te.s3.amazonaws.com/installers.zip
curl -O https://anaconda-airgap-te.s3.amazonaws.com/installers.sha256
  1. Move the installers.zip file to the airgap folder of Anaconda Server repositoryby running the following command:
mv /installers.zip /opt/anaconda/repo/airgap/
  1. If necessary, open your Anaconda Server installer directory.
  2. Using your preferred file viewer, open the docker-compose.yml file.
  3. Verify that the following line is present in the volumes section for both the repo_api and repo_worker objects:
${BASE_INSTALL_DIR}/airgap:${BASE_INSTALL_DIR}/airgap

If the above line is not present, add it to both locations. This allows docker to have access to the /opt/anaconda/repo/airgap directory.

  1. Add the following line to the environment section for both the repo_api and repo_worker objects:
REPO_MINICONDA_INSTALLERS_ZIP_PATH=/opt/anaconda/repo/airgap/installers.zip
  1. Save your work and close the file, then apply your changes to Anaconda Server by running the following command:
docker compose up -d

Miniconda installers will now be available for your end users to download from the login page of Anaconda Server.

Was this page helpful?