| 123456789101112131415161718192021222324252627282930 |
- #!/usr/bin/env bash
- # Build the Nemotron-3.5-Bolt B12X wrapper (thin FROM over the model card's
- # pinned stock vLLM nightly).
- #
- # Uses the classic docker builder (not buildx docker-container): the base is a
- # registry image pulled by digest, which the classic builder resolves fine, and
- # this keeps the build identical to the other b12x wrappers in this repo.
- #
- # Generic driver: forwards every KEY=VAL pin in versions.env as a
- # --build-arg to the Dockerfile (no hardcoded variable list). The sm121
- # launcher writes a merged versions.env here when a recipe carries
- # [build.versions] overrides (recipe wins over the image defaults).
- set -euo pipefail
- cd "$(dirname "$0")"
- TAG="${TAG:-nemotron-bolt-b12x:local}"
- ARGS=()
- while IFS= read -r line; do
- # Skip blank lines and comments (# ...).
- 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} ==="
|