Created
May 23, 2020 21:52
-
-
Save Weilbyte/a9485cde8b089ce8fa465cb596d84f3e to your computer and use it in GitHub Desktop.
Harbor Install Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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