Skip to content

Instantly share code, notes, and snippets.

Created November 19, 2020 20:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Automated installation of VMware Harbor Registry on Photon OS
systemctl enable docker
systemctl start docker
curl -L "${DOCKER_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
curl -L${HARBOR_VERSION}/harbor-offline-installer-v${HARBOR_VERSION}.tgz -o harbor-offline-installer-v${HARBOR_VERSION}.tgz
tar xvzf harbor-offline-installer*.tgz
rm -f harbor-offline-installer-v${HARBOR_VERSION}.tgz
cd /root/harbor
sed -i "s/hostname:.*/hostname: ${HARBOR_HOSTNAME}/g" harbor.yml
# comment below for HTTPS (default on Harbor) but you will also need to specify your own generated TLS certificate
sed -i 's/^https:.*/#https/g' harbor.yml
sed -i "s/harbor_admin_password:.*/harbor_admin_password: ${DEFAULT_HARBOR_PASSWORD}/g" harbor.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment