This repository contains the scripts to install and push images to the Harbor registry server used for hosting images to use Dkube in airgapped environments. The following are the scripts used for bringup:
- install.sh - To install Harbor registry on the node on which the script is run.
- download.sh - To download and tar required images from dockerhub (Only if registry-server node does not have internet access).
- upload.sh - To upload the required images to Harbor registry server.
- update-dockerd.sh - To update docker configuration on all nodes in the airgapped cluster.
- Registry-server should have the following packages installed - docker, docker-compose, curl.
- On registry-server node, Clone this repo:
git clone https://github.com/oneconvergence/registry-server.git - Go to registy-server directory:
cd registry-server - Run
./install.sh(Logs stored at/tmp/harbor.logon host machine)
- On a separate node with internet, list required images in
images.txtand useregistry-server/download.shto download the images:./download.sh --image-list images/<dkube_version>.txt --output images.tar - Transfer
images.tarto registry server node via USB disk or any other method. - On the registry server node, run:
./upload.sh --image-list images/<dkube_version>.txt --images images.tar
- On the registry server node run the following:
./upload.sh --image-list images/<dkube_version>.txt
Passwordless ssh should be allowed from registry server node to all other nodes.
- Run
./update-dockerd.shand pass the username and list of cluster node's IPs