| 123456789101112131415161718192021222324252627 |
- #!/usr/bin/env bash
- # Build the mimo26-spark-vllm wrapper (thin FROM over the r39 b12x image).
- #
- # Uses the classic docker builder (not buildx docker-container): the base
- # image jovian-judgement:r39-glm53 is local-only (never pushed to a
- # registry), and the container-driver builder cannot resolve local FROM
- # references.
- #
- # Generic driver: forwards every KEY=VAL pin in versions.env as a
- # --build-arg to the Dockerfile (no hardcoded variable list).
- set -euo pipefail
- cd "$(dirname "$0")"
- TAG="${TAG:-mimo26-spark-vllm:local}"
- ARGS=()
- while IFS= read -r line; do
- case "$line" in
- ''|\#*) continue ;;
- esac
- key="${line%%=*}"
- val="${line#*=}"
- [ -n "$key" ] && ARGS+=(--build-arg "${key}=${val}")
- done < versions.env
- echo "=== Building ${TAG} ==="
- docker build "${ARGS[@]}" --progress=plain -t "${TAG}" -f Dockerfile . 2>&1
- echo "=== Done: ${TAG} ==="
|