Build production images and generate lock files for reproducible environments
hud build
command creates production Docker images and generates hud.lock.yaml
files that capture all metadata needed for reproducible deployments.
-t
-v
Build Docker Image
docker build
with appropriate tags and build argumentsAnalyze Environment
Generate Lock File
hud.lock.yaml
with:Label Image
hud.lock.yaml
contains:
--tag
, the command:
pyproject.toml
for [tool.hud.image]
hud-{directory-name}:latest
my_tool
→ Image hud-my-tool:latest
browser-env
→ Image hud-browser-env:latest
Dockerfile
in the environment directory:
ENV
declarations → Optional variablesARG
with no default → Required variableshud.lock.yaml
enables:
hud push
to share environmentsDocker build error
Analysis timeout
Lock file not generated
setup()
- Must existevaluate()
- Must return a dictionary--no-cache
significantly increases build time. Only use when necessary.hud debug
after buildinghud init
- Create new environmentshud dev
- Development with hot-reloadhud push
- Share to registryhud analyze
- Inspect built images