Skip to content

Commit

Permalink
Updated oras cache
Browse files Browse the repository at this point in the history
  • Loading branch information
maouw committed Nov 8, 2023
1 parent c29d5ad commit 22830af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hyakvnc
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,8 @@ function cmd_create {
fi
fi

case "${HYAKVNC_APPTAINER_CONTAINER}" in
oras://*)
# Preload ORAS images if requested:
if [[ "${HYAKVNC_APPTAINER_GHCR_ORAS_PRELOAD:-1}" == 1 ]]; then
local oras_cache_dir oras_image_path
Expand All @@ -1084,6 +1086,9 @@ function cmd_create {
log ERROR "Failed to create directory ${oras_cache_dir}."
fi
fi
;;
*) ;;
esac

export HYAKVNC_SLURM_JOB_NAME="${HYAKVNC_SLURM_JOB_PREFIX}${container_name}"
export SBATCH_JOB_NAME="${HYAKVNC_SLURM_JOB_NAME}" && log TRACE "Set SBATCH_JOB_NAME to ${SBATCH_JOB_NAME}"
Expand Down

0 comments on commit 22830af

Please sign in to comment.