Offline installation¶
In order to install SC4SNMP using docker compose in the offline environment, several docker images must be imported.
These images can be found in .env
file:
SC4SNMP_IMAGE
andSC4SNMP_TAG
inDeployment configuration
sectionCOREDNS_IMAGE
andCOREDNS_TAG
inDependencies images
sectionMIBSERVER_IMAGE
andMIBSERVER_TAG
inDependencies images
sectionREDIS_IMAGE
andREDIS_TAG
inDependencies images
sectionMONGO_IMAGE
andMONGO_TAG
inDependencies images
section
Following images must be downloaded in the online environment, saved to .tar
archive and moved to the offline environment.
Steps required to install necessary images¶
Suppose that .env
contains the following images:
SC4SNMP_IMAGE=ghcr.io/splunk/splunk-connect-for-snmp/container
SC4SNMP_TAG=latest
COREDNS_IMAGE=coredns/coredns
COREDNS_TAG=1.11.1
MIBSERVER_IMAGE=ghcr.io/pysnmp/mibs/container
MIBSERVER_TAG=latest
REDIS_IMAGE=docker.io/bitnami/redis
REDIS_TAG=7.2.1-debian-11-r0
MONGO_IMAGE=docker.io/bitnami/mongodb
MONGO_TAG=6.0.9-debian-11-r5
They must be downloaded in the online environment by following commands:
docker pull ghcr.io/splunk/splunk-connect-for-snmp/container:latest
docker pull coredns/coredns:1.11.1
docker pull ghcr.io/pysnmp/mibs/container:latest
docker pull docker.io/bitnami/redis:7.2.1-debian-11-r0
docker pull docker.io/bitnami/mongodb:6.0.9-debian-11-r5
Next step is to save them to sc4snmp_offline_images.tar
archive:
docker save ghcr.io/splunk/splunk-connect-for-snmp/container:latest \
coredns/coredns:1.11.1 \
ghcr.io/pysnmp/mibs/container:latest \
docker.io/bitnami/redis:7.2.1-debian-11-r0 \
docker.io/bitnami/mongodb:6.0.9-debian-11-r5 > sc4snmp_offline_images.tar
After moving sc4snmp_offline_images.tar
archive to the offline environment, images can be loaded to docker:
docker load --input sc4snmp_offline_images.tar