#!/bin/sh set -eu cd "$(dirname "$0")/.." if [ ! -x .venv/bin/python ]; then python3 -m venv .venv .venv/bin/python -m pip install -r requirements-research.txt fi ./scripts/bootstrap.sh # OpenBao drops all capabilities: give only its persistent volume to the local UID. docker volume create mtusi-lab7_bao_data >/dev/null uid=$(id -u); gid=$(id -g) docker run --rm --network none --user 0 -v mtusi-lab7_bao_data:/data alpine:3.20 chown "$uid:$gid" /data ./scripts/compose.sh build api ./scripts/compose.sh up -d db-engine s3-engine broker-engine cache-engine collector-engine prometheus-engine loki-engine tempo-engine grafana-engine openbao .venv/bin/python scripts/bao_init.py ./scripts/compose.sh run --rm --no-deps operator python service.py operator python scripts/provision.py ./scripts/compose.sh up -d api worker publisher observer janitor lb .venv/bin/python scripts/reload_mesh.py .venv/bin/python scripts/wait_ready.py