Files
boardroom-map/sandbox/build.sh
T

18 lines
646 B
Bash

#!/usr/bin/env bash
# Build the Boardroom Map reviewer 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 "Reviewer 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/reviewer.Dockerfile" "$DIR"
echo ">> Done. Image: $IMAGE"
docker image inspect "$IMAGE" >/dev/null && echo ">> OK"