#!/usr/bin/env bash # Clones the two source-built devnet dependencies at commits verified to work # with this compose file's CLI flags. Both repos are fast-moving (AI-assisted # development, no published container image matching their own main), so # pinning beats "clone main and hope" — re-pin deliberately, not by accident. set -euo pipefail cd "$(dirname "${BASH_SOURCE[0]}")" JETSTREAM_REPO=https://github.com/bluesky-social/jetstream.git JETSTREAM_SHA=799fae7a52a1e2eb88fad6424ed6066d8eafba49 MICROCOSM_REPO=https://tangled.org/microcosm.blue/microcosm-rs.git MICROCOSM_SHA=e54f6518b85309203ca066446e6629dd22e16a76 clone_pinned() { local dir="$1" repo="$2" sha="$3" if [ -d "$dir" ]; then echo "$dir already exists, skipping (rm -rf it first to re-clone)" return fi git clone "$repo" "$dir" git -C "$dir" checkout "$sha" } clone_pinned jetstream "$JETSTREAM_REPO" "$JETSTREAM_SHA" clone_pinned microcosm-rs "$MICROCOSM_REPO" "$MICROCOSM_SHA" if [ ! -f .env ]; then ./gen-secrets.sh fi echo "Ready. Run: docker compose up -d --build"