Update harbor to 2.6.
This commit is contained in:
@@ -22,6 +22,9 @@ with_trivy=$false
|
||||
# chartmuseum is not enabled by default
|
||||
with_chartmuseum=$false
|
||||
|
||||
# flag to using docker compose v1 or v2, default would using v1 docker-compose
|
||||
DOCKER_COMPOSE=docker-compose
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case $1 in
|
||||
--help)
|
||||
@@ -88,14 +91,28 @@ fi
|
||||
./prepare $prepare_para
|
||||
echo ""
|
||||
|
||||
if [ -n "$(docker-compose ps -q)" ]
|
||||
then
|
||||
note "stopping existing Harbor instance ..."
|
||||
docker-compose down -v
|
||||
if [ -n "$DOCKER_COMPOSE ps -q" ]
|
||||
then
|
||||
note "stopping existing Harbor instance ..."
|
||||
$DOCKER_COMPOSE down -v
|
||||
fi
|
||||
echo ""
|
||||
|
||||
h2 "[Step $item]: starting Harbor ..."
|
||||
docker-compose up -d
|
||||
if [ $with_chartmuseum ]
|
||||
then
|
||||
warn "
|
||||
Chartmusuem will be deprecated as of Harbor v2.6.0 and start to be removed in v2.8.0 or later.
|
||||
Please see discussion here for more details. https://github.com/goharbor/harbor/discussions/15057"
|
||||
fi
|
||||
if [ $with_notary ]
|
||||
then
|
||||
warn "
|
||||
Notary will be deprecated as of Harbor v2.6.0 and start to be removed in v2.8.0 or later.
|
||||
You can use cosign for signature instead since Harbor v2.5.0.
|
||||
Please see discussion here for more details. https://github.com/goharbor/harbor/discussions/16612"
|
||||
fi
|
||||
|
||||
$DOCKER_COMPOSE up -d
|
||||
|
||||
success $"----Harbor has been installed and started successfully.----"
|
||||
|
||||
Reference in New Issue
Block a user