Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -1,15 +1,15 @@
#!/usr/bin/env bash
set -euo pipefail
IMAGE="${1:-toolctrl-worker:smoke}"
CONTAINER_NAME="${DOCKER_WORKER_SMOKE_CONTAINER:-toolctrl-worker-runtime-smoke-$$}"
DB_CONTAINER_NAME="${DOCKER_WORKER_SMOKE_DB_CONTAINER:-toolctrl-worker-runtime-smoke-db-$$}"
REDIS_CONTAINER_NAME="${DOCKER_WORKER_SMOKE_REDIS_CONTAINER:-toolctrl-worker-runtime-smoke-redis-$$}"
NETWORK_NAME="${DOCKER_WORKER_SMOKE_NETWORK:-toolctrl-worker-runtime-smoke-$$}"
IMAGE="${1:-hivegrid-worker:smoke}"
CONTAINER_NAME="${DOCKER_WORKER_SMOKE_CONTAINER:-hivegrid-worker-runtime-smoke-$$}"
DB_CONTAINER_NAME="${DOCKER_WORKER_SMOKE_DB_CONTAINER:-hivegrid-worker-runtime-smoke-db-$$}"
REDIS_CONTAINER_NAME="${DOCKER_WORKER_SMOKE_REDIS_CONTAINER:-hivegrid-worker-runtime-smoke-redis-$$}"
NETWORK_NAME="${DOCKER_WORKER_SMOKE_NETWORK:-hivegrid-worker-runtime-smoke-$$}"
SMOKE_REVISION="${DOCKER_WORKER_SMOKE_REVISION:-}"
DB_PASSWORD="toolctrl"
DB_NAME="toolctrl"
DB_USER="toolctrl"
DB_PASSWORD="hivegrid"
DB_NAME="hivegrid"
DB_USER="hivegrid"
cleanup() {
docker rm -f "$CONTAINER_NAME" >/dev/null 2>&1 || true
@@ -37,7 +37,7 @@ fi
worker_env=(
-e NODE_ENV=production
-e APP_NAME=ToolCTRL
-e APP_NAME=HiveGrid
-e APP_BASE_DOMAIN=localhost
)
@@ -147,7 +147,7 @@ enabled_health_output="$(
-e BULLMQ_REDIS_URL="$CONTAINER_REDIS_URL" \
"$IMAGE" node apps/worker/dist/health.js
)"
expect_worker_health "$enabled_health_output" ready true general toolctrl.notifications
expect_worker_health "$enabled_health_output" ready true general hivegrid.notifications
mail_health_output="$(
docker run --rm --network "$NETWORK_NAME" \
@@ -158,7 +158,7 @@ mail_health_output="$(
-e BULLMQ_REDIS_URL="$CONTAINER_REDIS_URL" \
"$IMAGE" node apps/worker/dist/health.js
)"
expect_worker_health "$mail_health_output" ready true mail toolctrl.email
expect_worker_health "$mail_health_output" ready true mail hivegrid.email
docker run -d --name "$CONTAINER_NAME" --network "$NETWORK_NAME" \
"${worker_env[@]}" \
@@ -166,7 +166,7 @@ docker run -d --name "$CONTAINER_NAME" --network "$NETWORK_NAME" \
-e WORKER_QUEUE_GROUP=general \
-e DATABASE_URL="$CONTAINER_DATABASE_URL" \
-e BULLMQ_REDIS_URL="$CONTAINER_REDIS_URL" \
"$IMAGE" >/tmp/toolctrl-worker-runtime-smoke.log
"$IMAGE" >/tmp/hivegrid-worker-runtime-smoke.log
for attempt in $(seq 1 10); do
if [[ "$(docker inspect -f '{{.State.Running}}' "$CONTAINER_NAME" 2>/dev/null || true)" == "true" ]]; then
@@ -185,6 +185,6 @@ done
running_health_output="$(
docker exec "$CONTAINER_NAME" node apps/worker/dist/health.js
)"
expect_worker_health "$running_health_output" ready true general toolctrl.notifications
expect_worker_health "$running_health_output" ready true general hivegrid.notifications
echo "Docker worker runtime smoke passed for ${IMAGE}"