Offline setup

Installing a Docker-based application offline requires some additional steps, but it's entirely possible with the right preparation. This manual will guide you through the process step by step. Please note that you'll need access to another machine with internet access to download the necessary Docker images in advance.

Requirements:

  • A machine where you want to install the Docker-based application (the offline machine).
  • Another machine with internet access.
  • Docker and Docker Compose installed on both machines.
  • A USB drive or other means of transferring files between the two machines.

Step 1: Prepare the Online Machine

1.1. On the machine with internet access, open a terminal or command prompt.

1.2. Download the Docker images required for your application using the docker pull command. The actual names of the Docker images you need can be found in the docker-compose-production.yml file.

docker pull nginx
docker pull toke/mosquitto
docker pull mongo:4.4.18
docker pull impleo/stsupervisor:1.5.1
docker pull impleo/stserver-webrtc-streamer:2.1.2
docker pull impleo/stserver:2.10.4 
docker pull impleo/stvideoserver:1.0.0
docker pull impleo/stserver-conf:1.0.0

1.3. Save the Docker images to a tar file:

docker save -o nginx.tar nginx
docker save -o mosquitto.tar toke/mosquitto
docker save -o mongo.tar mongo:4.4.18
docker save -o stsupervisor.tar impleo/stsupervisor:1.5.1
docker save -o stserver-webrtc-streamer.tar impleo/stserver-webrtc-streamer:2.1.2
docker save -o stserver.tar impleo/stserver:2.10.4 
docker save -o stvideoserver.tar impleo/stvideoserver:1.0.0
docker save -o stserver-conf.tar impleo/stserver-conf:1.0.0

1.4. Copy the tar files to a USB drive or another portable storage device.

Step 2: Transfer Files to the Offline Machine

2.1. Eject the USB drive from the online machine and insert it into the offline machine.

2.2. Copy the tar files from the USB drive to a directory on the offline machine, e.g., /tmp.

Step 3: Load Docker Images on the Offline Machine

3.1. On the offline machine, open a terminal or command prompt.

3.2. Navigate to the directory where you copied the tar files.

3.3. Load the Docker images from the tar files:

docker load -i nginx.tar
docker load -i mosquitto.tar
docker load -i mongo.tar
docker load -i stsupervisor.tar
docker load -i stserver-webrtc-streamer.tar
docker load -i stserver.tar
docker load -i stvideoserver.tar

3.4. Verify that the images have been successfully loaded:

docker images

Step 4: Download and install stserver setup files

4.1 On the machine with internet access, download the stserver-install.tar.gz file from the Stanag On Demand server github repository website or use the command:

wget https://github.com/impleotv/stserver-release/releases/download/v2.10.4/stserver-install.tar.gz

4.2 Copy the stserver-install.tar.gz file to a USB drive or another portable storage device.

4.3 Copy the stserver-install.tar.gz file from the USB drive to the offline machine and follow the Manual installaion instructions