#!/usr/bin/env bash # Build the Boardroom Map grader image ON THE HEAD SPARK (aarch64/GB10). # The orchestrator does this automatically over SSH, but you can also run it by # hand: copy this sandbox/ directory to the Spark and run: # # IMAGE=boardroom-grader:latest bash build.sh # # The tag must match the service's "Grader Image Tag" (Configure Sparks). set -euo pipefail IMAGE="${IMAGE:-boardroom-grader:latest}" DIR="$(cd "$(dirname "$0")" && pwd)" echo ">> Building $IMAGE from $DIR" docker build -t "$IMAGE" -f "$DIR/grader.Dockerfile" "$DIR" echo ">> Done. Image: $IMAGE" docker image inspect "$IMAGE" >/dev/null && echo ">> OK"