Skip to content

Commit

Permalink
Pass the parameter --concurrency 1 to the command imgpkg copy command…
Browse files Browse the repository at this point in the history
… to fix the too many requests observed on ghcr.io. Fix #17
  • Loading branch information
cmoulliard committed Jun 8, 2022
1 parent 8fdd3d7 commit bf0c6cb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# - TANZU_REG_USERNAME: user to be used to be authenticated against the Tanzu image registry
# - TANZU_REG_PASSWORD: password to be used to be authenticated against the Tanzu image registry
# - COPY_PACKAGES: Copy package image bundles from Tanzu to your favorite image registries
#
# - REGISTRY_CA_PATH: Path of the CA certificate used by the local private container registry

set -e

Expand Down Expand Up @@ -291,8 +291,10 @@ if [[ "$COPY_PACKAGES" == "true" ]]; then

log "CYAN" "Relocate the repository image bundle from Tanzu to ghcr.io"
echo " imgpkg copy -b registry.tanzu.vmware.com/tanzu-application-platform/tap-packages:$TAP_VERSION --to-repo $REGISTRY_SERVER/$REGISTRY_OWNER/tap-packages"
imgpkg copy -b registry.tanzu.vmware.com/tanzu-application-platform/tap-packages:$TAP_VERSION \
--to-repo $REGISTRY_SERVER/$REGISTRY_OWNER/tap-packages
imgpkg copy \
--concurrency 1 \
-b registry.tanzu.vmware.com/tanzu-application-platform/tap-packages:$TAP_VERSION \
--to-repo $REGISTRY_SERVER/$REGISTRY_OWNER/tap-packages
fi

log "CYAN" "Deploy the TAP package repository"
Expand Down

0 comments on commit bf0c6cb

Please sign in to comment.