fix: wait for imgproxy compat health on release
This commit is contained in:
@@ -24,6 +24,7 @@ test('installer uses a read-only storage mount and both required ports', () => {
|
|||||||
assert.match(installer, /10\.10\.0\.2/);
|
assert.match(installer, /10\.10\.0\.2/);
|
||||||
assert.match(installer, /IMGPROXY_UPSTREAM/);
|
assert.match(installer, /IMGPROXY_UPSTREAM/);
|
||||||
assert.match(installer, /DOCKER_BIN/);
|
assert.match(installer, /DOCKER_BIN/);
|
||||||
|
assert.match(installer, /seq 1 20/);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('release verifies checksums before loading the image and backs up launch state', () => {
|
test('release verifies checksums before loading the image and backs up launch state', () => {
|
||||||
|
|||||||
@@ -54,4 +54,8 @@ launchctl bootout "$GUI/cn.tkmind.imgproxy-compat" 2>/dev/null || true
|
|||||||
launchctl bootstrap "$GUI" "$PLIST"
|
launchctl bootstrap "$GUI" "$PLIST"
|
||||||
launchctl enable "$GUI/cn.tkmind.imgproxy-compat"
|
launchctl enable "$GUI/cn.tkmind.imgproxy-compat"
|
||||||
launchctl kickstart -k "$GUI/cn.tkmind.imgproxy-compat"
|
launchctl kickstart -k "$GUI/cn.tkmind.imgproxy-compat"
|
||||||
|
for _ in $(seq 1 20); do
|
||||||
|
curl -fsS --max-time 2 http://10.10.0.2:20081/health >/dev/null && break
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
curl -fsS --max-time 3 http://10.10.0.2:20081/health >/dev/null
|
curl -fsS --max-time 3 http://10.10.0.2:20081/health >/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user