File tree 2 files changed +2
-9
lines changed
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,9 @@ function start_registry() {
8
8
local registry_pid=" $1/proc.pid"
9
9
10
10
mkdir -p " ${storage_dir}"
11
- # --blobs-to-disk uses go' s os.TempDir() function which is equal to TMPDIR under *nix.
12
- # https://pkg.go.dev/os#TempDir
13
- TMPDIR="${storage_dir}" TMP="${storage_dir}" \
14
- "${CRANE_REGISTRY_BIN}" registry serve --blobs-to-disk >> $output 2>&1 &
11
+ " ${CRANE_REGISTRY_BIN}" registry serve --disk= " ${storage_dir}" --address= localhost:0 >> $output 2> &1 &
15
12
echo " $!" > " ${registry_pid}"
16
-
13
+
17
14
local timeout= $((SECONDS+${deadline} ))
18
15
19
16
while [ "${ SECONDS} " -lt "${ timeout} " ]; do
@@ -34,10 +31,8 @@ function stop_registry() {
34
31
local storage_dir=" $1"
35
32
local registry_pid=" $1/proc.pid"
36
33
if [[ ! -f " ${registry_pid}" ]]; then
37
- echo " Registry not started" > &2
38
34
return 0
39
35
fi
40
- echo " Stopping registry process" > &2
41
36
kill -9 " $(cat " ${registry_pid} ")" || true
42
37
return 0
43
38
}
Original file line number Diff line number Diff line change @@ -39,10 +39,8 @@ function stop_registry() {
39
39
local storage_dir=" $1"
40
40
local registry_pid=" $1/proc.pid"
41
41
if [[ ! -f " ${registry_pid}" ]]; then
42
- echo " Registry not started" > &2
43
42
return 0
44
43
fi
45
- echo " Stopping registry process" > &2
46
44
kill -9 " $(cat " ${registry_pid} ")" || true
47
45
return 0
48
46
}
You can’t perform that action at this time.
0 commit comments