Skip to content

Commit

Permalink
Preloading oras://ghcr.io images via CURL
Browse files Browse the repository at this point in the history
  • Loading branch information
maouw committed Oct 28, 2023
1 parent 10e35b4 commit 2d388e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hyakvnc
Original file line number Diff line number Diff line change
Expand Up @@ -1078,7 +1078,7 @@ function cmd_create {
oras_cache_dir="${APPTAINER_CACHEDIR:-${HOME}/.apptainer/cache}/cache/oras"
if mkdir -p "${oras_cache_dir}"; then
log INFO "Preloading ORAS image for \"${HYAKVNC_APPTAINER_CONTAINER}\""
oras_image_path="$(ghcr_get_oras_sif "${HYAKVNC_APPTAINER_CONTAINER}" "${APPTAINER_CACHEDIR}/cache/oras" 1>/dev/null || true)"
oras_image_path="$(ghcr_get_oras_sif "${HYAKVNC_APPTAINER_CONTAINER}" "${APPTAINER_CACHEDIR}/cache/oras" || true)"
[[ -z "${oras_image_path:-}" ]] && log ERROR "hyakvnc failed to preload ORAS image for \"${HYAKVNC_APPTAINER_CONTAINER:-}\" on its own. Apptainer will try to download the image by itself. If you don't want to preload ORAS images, use the --no-ghcr-oras-preload option."
else
log ERROR "Failed to create directory ${oras_cache_dir}."
Expand Down

0 comments on commit 2d388e1

Please sign in to comment.