In this guide I will show you how to configure your Harbor registry to use S3 as the storage backend for image repositories. This will allow you to consume S3 storage instead of local storage or a docker volume for images pushed to the Harbor registry.
Pre-Reqs
- Photon OS with at least 1 vCPU 2GB RAM and at least 5GB storage – vSphere OVA Here
- Internet Access from Photon OS to the internet
- A quite place where you will not get interrupted see my guide here
- An AWS account with at least one S3 bucket created
cd /home
tdnf -y install wget tar
Now we need to download the Harbor install files
Note: You can find the latest release here
wget https://github.com/vmware/harbor/releases/download/v1.1.0/harbor-offline-installer-v1.1.0.tgz
tar xvf harbor-offline-installer-v1.1.0.tgz
Now change to the harbor directory and edit the harbor config file to update the host name and any other settings you choose
See full guide here
cd harbor vi harbor.cfg
vi common/templates/registry/config.yml
Please NOTE: You can and should delete this file after Harbor is installed as your AWS accesskey and secretkey are exposed in clear text.
Almost there, Harbor uses Docker Compose so before continue we will need to install it with the following
curl -L https://github.com/docker/compose/releases/download/1.12.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
Pingback: Verify your Harbor Registry is backed by S3 Storage – VMtoCloud.com
S3 configuration paste, my configuration here failed. I configured the S3 service with CEPH rgw
i did with this but failed, version 1.6.0 is it anying changed?