Skip to content

Commit 8a6b2ce

Browse files
committed
feat(scripts): gate edge deploy on rend-edge readyz
1 parent dfdf6ad commit 8a6b2ce

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

scripts/deploy-edge-host.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ edge_image="$(operator_manifest_image_ref "$manifest" rend-edge "$allow_local_im
7575

7676
if [[ "$dry_run" != "true" ]]; then
7777
operator_check_docker_compose
78+
operator_require_command curl
7879
operator_info "checking manifest image pull readiness and platform"
7980
operator_check_manifest_image_pulls "$manifest" "$allow_local_image_refs" "$expected_platform" rend-edge
8081
operator_finish
@@ -88,6 +89,11 @@ operator_run_or_dry_run "$dry_run" \
8889
env "REND_EDGE_IMAGE=$edge_image" \
8990
docker compose -f "$compose_file" up -d --no-deps rend-edge
9091

92+
if [[ "$dry_run" != "true" ]]; then
93+
curl -fsS --retry 12 --retry-delay 5 --retry-all-errors http://127.0.0.1:4100/readyz >/dev/null
94+
echo "rend-edge is ready"
95+
fi
96+
9197
if [[ "$dry_run" == "true" ]]; then
9298
echo "Dry run complete; no edge deploy commands were executed"
9399
else

0 commit comments

Comments
 (0)