Skip to content

Instantly share code, notes, and snippets.

@Weilbyte
Created May 23, 2020 21:52
Show Gist options
  • Save Weilbyte/a9485cde8b089ce8fa465cb596d84f3e to your computer and use it in GitHub Desktop.
Save Weilbyte/a9485cde8b089ce8fa465cb596d84f3e to your computer and use it in GitHub Desktop.
Harbor Install Script
#!/bin/bash
mkdir -p /srv/harbor
cd /srv/
HARBORVERSION=$(curl -s https://github.com/goharbor/harbor/releases/latest/download 2>&1 | grep -Po [0-9]+\.[0-9]+\.[0-9]+)
curl -s https://api.github.com/repos/goharbor/harbor/releases/latest | grep browser_download_url | grep online | cut -d '"' -f 4 | wget -qi -
tar xvf harbor-online-installer-v$HARBORVERSION.tgz
cd harbor
./install.sh --with-clair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment