Skip to content

Commit

Permalink
fix: make crane use storage directory
Browse files Browse the repository at this point in the history
  • Loading branch information
thesayyn committed Nov 21, 2023
1 parent bf596e6 commit 2977a9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions oci/private/registry/crane_launcher.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ readonly SCRIPT_DIR="$(dirname "${BASH_SOURCE[0]}")"
readonly CRANE_REGISTRY_BIN="${SCRIPT_DIR}/{{CRANE}}"

function start_registry() {
local __unused_storage_dir="$1"
local storage_dir="$1"
local output="$2"
local deadline="${3:-5}"
"${CRANE_REGISTRY_BIN}" registry serve --blobs-to-disk >> $output 2>&1 &
mkdir -p "${storage_dir}"
TMPDIR="${storage_dir}" "${CRANE_REGISTRY_BIN}" registry serve --blobs-to-disk >> $output 2>&1 &
local timeout=$((SECONDS+${deadline}))

Expand Down

0 comments on commit 2977a9a

Please sign in to comment.