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 b456895 commit 091402c
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 @@ -1073,7 +1073,7 @@ function cmd_create {
# Preload ORAS images if requested:
if [[ "${HYAKVNC_APPTAINER_GHCR_ORAS_PRELOAD:-1}" == 1 ]]; then
local oras_image_path oras_cache_dir
oras_cache_dir="${APPTAINER_CACHEDIR:-${HOME}/.apptainer/cache}/oras"
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}/oras" || true)"
Expand Down

0 comments on commit 091402c

Please sign in to comment.