This tool will help you sync specific packages from the public depot to an onprem depot.
hab studio enter
hab pkg install jvogt/depot-package-sync -b
hab studio enter
hab pkg install jvogt/depot-package-sync -b
TOKEN="abcd1234..."
URL="https://jv-hab-depot.chef-demo.com"
depot-package-sync --onprem-token "${TOKEN}" --onprem-url "${URL}" --package <package ident>
hab studio enter
hab pkg install jvogt/depot-package-sync -b
TOKEN="abcd1234..."
URL="https://jv-hab-depot.chef-demo.com"
while read PACKAGE; do
depot-package-sync --onprem-token "${TOKEN}" --onprem-url "${URL}" --package $PACKAGE
done < workshop-packages