build.sh 882 B

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