Offline Installation (Docker)

Install Connectware on Docker in offline environments using Docker Compose.

This guide walks you through the process of installing Connectware in offline environments using Docker Compose. The offline installation process is designed for environments where Internet access is limited, unavailable, or restricted for security reasons.

The offline installation process has two phases:

  1. Preparation phase: Use a donor PC with Internet access to download the Docker images, the installer script, and the license files.

  2. Installation phase: Transfer the files to the recipient PC and install Connectware without Internet connectivity.

Prerequisites

Donor PC Requirements

  • Internet connection

  • Docker installed and running

  • Terminal access (Linux, macOS, or Windows with WSL)

  • Connectware license key (for authenticating with the Cybus registry)

  • Access to the Cybus Portalarrow-up-right to download license files

  • USB drive or other transfer medium for moving files

circle-info

Connectware does not need to be pre-installed on the donor PC. The Docker images will be pulled directly from the Cybus registry. However, if you already have Connectware installed, the existing Docker images can be reused, which will save time by skipping the pull step.

Recipient PC Requirements

  • Operating System: Linux

  • Docker and Docker Compose installed and running

    • For more information on installing Docker, refer to the Docker documentationarrow-up-right. Docker Desktop includes Docker Compose along with Docker Engine and Docker CLI which are Compose prerequisites.

  • No Internet connection required

  • Sufficient disk space for Docker images (typically 5-10 GB for version 2.1.2)

Phase 1: Preparing Files on the Donor PC

Follow these steps on a computer with Internet access to download and prepare all required files.

1

Create a Storage Folder

  • Create a dedicated folder to store all required files for the offline installation.

2

Determine the Connectware Version

Determine which Connectware version you need to install.

If you already have Connectware running on the donor PC, you can identify the installed version:

Look for the version number in the image tags (e.g., 2.0.0, 2.1.0, 2.1.2).

3

Authenticate with the Cybus Registry

  1. Before downloading Docker images, authenticate with the Cybus registry using your license key.

  1. When prompted, enter your license key (the same one you will use for installation).

Result: You are now authenticated and can pull Docker images from the Cybus registry.

4

Download Docker Images

Download all required Docker images for your Connectware version. This involves pulling images from the registry and then saving them to tar files.

circle-exclamation
  • To verify which images are already available locally, run the following command. If all required images for your target version are listed, you can skip the pull step.

  • To pull the required images, run the following commands. Make sure to replace ${VERSION} with the version you want to install.

circle-exclamation

Example for version 2.1.2

circle-info

The image download process may take several minutes depending on your Internet connection speed. Each image will be pulled from the registry and then saved to a tar file. The tar files will be several hundred megabytes each.

5

Download the Installer Script

  • Download the Connectware installer script for your target version.

Example for version 2.1.2

circle-info

If you already have Connectware installed and the installer script is available at /opt/connectware, you can copy it from there instead of downloading it.

6

Download License Files

  1. Sign in with your credentials.

  2. Navigate to Licenses to view your available Connectware licenses.

  3. Select your license and download both the license key file (.key) and license file (.lic).

  4. Save both files to your storage folder (connectware-offline).

For detailed instructions on obtaining license files, see Acquiring License Keys.

7

Transfer Files to USB Drive

Copy all files from your storage folder to a USB drive or other transfer medium:

  • All Docker image .tar files

  • connectware-online-installer.sh script

  • License key file (.key)

  • License file (.lic)

Result: You have prepared all necessary files for offline installation. You can now proceed to the recipient PC.

Phase 2: Installing Connectware on the Recipient PC

Follow these steps on the offline recipient PC to install Connectware.

1

Prepare the Installation Directory

  1. Copy all files from the USB drive to a folder on the recipient PC.

  2. Open a terminal and navigate to the folder containing the transferred files.

2

Start Docker

Ensure Docker is running on the recipient PC:

3

Load Docker Images

Load each Docker image into Docker. Replace ${VERSION} with your Connectware version.

Example for version 2.1.2

Result: All Docker images are now loaded and available for use.

4

Run the Installer in Offline Mode

Run the installer script in offline mode using the -o flag:

The installer will prompt you for configuration options and then generate a docker-compose.yml file in the current directory.

circle-info

The -o flag tells the installer to run in offline mode, which skips Internet connectivity checks and uses local Docker images. The installer is still interactive and will prompt for:

  • Installation directory (default: /opt/connectware)

  • Ingress hostnames

  • Whether to run as a systemd service

To run a non-interactive installation, use silent mode with additional flags:

circle-exclamation
5

Configure the License

  1. Open the generated docker-compose.yml file in a text editor:

  1. Locate the system-control-server service section and find the CYBUS_LICENSE_FILE environment variable.

  2. Open your license file (.lic) and copy its entire content.

  3. Paste the license content as the value for CYBUS_LICENSE_FILE:

  1. Save and close the file.

circle-exclamation
6

Start Connectware

Start Connectware using Docker Compose:

Docker Compose will create and start all Connectware containers in the background.

Result: Connectware is now running on the recipient PC.

Accessing Connectware

After installation, you can access Connectware through your web browser:

  1. Open your web browser.

  2. Navigate to https://localhost or the hostname you configured.

  3. Log in using the default credentials:

    • Username: admin

    • Password: admin

circle-exclamation

Uploading the License File

If prompted to upload a license file in the Admin UI, follow these steps:

  1. In the Admin UI, navigate to System > System Status.

  2. Click the License tab.

  3. Click Upload License File.

  4. Select your .lic file and confirm the upload.

License Validation in Offline Environments

When running Connectware in an offline environment, you may see a warning message in the License View indicating that the system cannot connect to the license validation server at https://graphql-server.cybus.io/graphql.

circle-info

This warning can be safely ignored in offline installations. The license validation has already been performed locally using the license file embedded in the docker-compose.yml configuration. Your license will show as valid.

The license information is stored locally in the docker-compose.yml file and does not require Internet connectivity to function. However, you will not be able to use the Refresh License button in the Admin UI, as this feature requires Internet access.

Troubleshooting

Docker Images Not Loading

Problem: Error messages when loading Docker images.

Solution: Verify that:

  • All .tar files were transferred completely and are not corrupted.

  • You have sufficient disk space on the recipient PC.

  • Docker is running with the correct permissions.

License File Not Accepted

Problem: Connectware does not accept the license file.

Solution: Ensure that:

  • You copied the entire content of the .lic file, including the -----BEGIN LICENSE----- and -----END LICENSE----- markers.

  • The license file is valid and not expired.

  • You pasted the content correctly in the docker-compose.yml file without extra spaces or line breaks.

Containers Not Starting

Problem: Some or all containers fail to start.

Solution:

  • Check container logs: docker compose logs

  • Verify all images loaded successfully: docker images | grep cybus

  • Ensure ports 80 and 443 are not in use by other applications.

Cannot Access Connectware

Problem: Cannot access the Connectware Admin UI in the browser.

Solution:

  • Verify all containers are running: docker compose ps

  • Check if ports are accessible: netstat -tuln | grep -E ':(80|443)'

  • Try accessing using the server's IP address instead of localhost.

Next Steps

After successfully installing Connectware in offline mode, you can:

Last updated

Was this helpful?