#!/bin/sh set -eu ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd) cd "$ROOT" bun scripts/preflight-openobserve-images.ts --grafana bun scripts/bootstrap.ts bun scripts/bootstrap-grafana.ts bun scripts/bootstrap-openobserve.ts scripts/compose.sh build api scripts/compose.sh up -d --pull never postgres valkey s3 init-telemetry openobserve bun scripts/wait-openobserve.ts bun scripts/provision-openobserve-accounts.ts scripts/compose.sh up -d --no-build --pull never api worker lb otel-collector observe-query bun student-tests/wait.ts scripts/compose.sh --profile grafana-pending up -d --no-build --pull never grafana bun scripts/wait-grafana.ts printf '%s\n' 'Application, Collector, OpenObserve and Grafana started; follow RUNBOOK.md for the local endpoints and acceptance commands.'