This topic provides guidance on installing Anaconda Server and verifying your installation.

To successfully install Anaconda Server, you must have already prepared your environment according to the Standard environment preparation topic.

Installing Anaconda Server

  1. Download your installer by running the following command:

    # Replace <INSTALLER_LOCATION> with the provided installer URL
    curl -O <INSTALLER_LOCATION>
    

    If you do not have root access, you must add yourself to the docker group by running the following command before you install:

    # Replace <USERNAME> with your Anaconda username
    usermod -a -G docker <USERNAME>
    
  2. 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 2>&1 | tee as.install.output
    

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

The installer directory contains both the installation script (install.sh) and the docker-compose.yml file, which defines how the Anaconda Server services are run.

By default, /opt/anaconda/repo is the file path for the installation folder. You can either create the folder manually by assigning write access to the current user, or use the -b (--base-install-dir) parameter to specify the folder for your installation.

Never delete the directory containing the docker-compose.yml and .env files.

Verifying your installation

Services are one-to-one to containers. Therefore, verifying that all major containers are up and not restarting or failing is a good first step.

  1. Return to your terminal and run the following command:

    docker ps
    

    You should see output similar to the following:

  2. Verify that the following containers appear with a STATUS of Up (not stuck in a restart loop) in the output:

    repo_api
    repo_worker
    repo_dispatcher
    proxy
    nginx_proxy
    keycloak
    redis
    postgres
    
  3. Open a browser and navigate to the domain that you supplied when executing the installer. If you are able to successfully authenticate and are asked for a license, Package Security Manager has installed successfully.

Advanced options

Further installation options can be seen by running the following command:

# Replace <INSTALLER> with your installer file
./<INSTALLER>/install.sh --help

This will present you with the following list of possible arguments:

Arguments (shorthand)Arguments (longhand)Description
-r DOCKER_REGISTRY--registry DOCKER_REGISTRYDocker registry, url:port (default uses the system Docker daemon)
-h POSTGRES_HOST--pg-host POSTGRES_HOSTPostgresql host (default is on internal Postgres instance)
-p POSTRES_PORT--pg-port POSTRES_PORTPostgresql port
-u POSTGRES_USER--pg-user POSTGRES_USERPostgresql user
-pw POSTGRES_PASSWORD--pg-password POSTGRES_PASSWORDPostgresql password (will set the internal Postgres instance password)
-e REDIS_URL--redis REDIS_URLRedis URL (default is an internal Redis instance)
-d DOMAIN--domain DOMAINExternal domain (or IP) of host system
-c TLS_CERTIFICATE--tls-certPath to TLS certification file for optionally configuring HTTPS
-k TLS_KEY--tls-key TLS_KEYPath to TLS key file for optionally configuring HTTPS
--default-user DEFAULT_USERDefault user name
--custom-ca-cert CA_CERTIFICATEPath to custom CA certification, which should be respected
--custom-cve-source CVE_DEFAULT_MIRRORFor Airgaped environments provide a custom source for CVE data
--upgrade-from PREVIOUS_DIRPrevious install folder
-l--no-image-loadDon’t load Docker images
-y--no-promptAnswer yes to all prompts
-- helpPrint help text

Was this page helpful?