🐳 Docker: how these images are built and verified¶
For "how do I run this in a container" (building an image, running it,
the agent container's compose profiles, first-run steps), see
DOCKER.md instead. That file ships wherever the pipeline
does: in the pip package, in chitragupta init's scaffold, and in every
release's standalone chitragupta-docker-<version>.zip. This file is
this repository's own record of how the two images (docker/Dockerfile,
the toolchain image; docker/Dockerfile.claude, the agent image) are
verified before a release. It is for someone changing either Dockerfile;
someone running one does not need it.
What CI does and does not build:
| Image | Built by CI | Run by CI |
|---|---|---|
docker/Dockerfile |
Yes: ci.yml's docker-build job runs docker build --build-arg TORCH_VARIANT=cpu on every push and PR |
No. It builds and is thrown away; nothing execs into it |
docker/Dockerfile.claude |
No; no workflow builds it | No |
So a break in the toolchain image's build is caught automatically; a
break in anything it does at runtime is not, and nothing about the agent
image is. shellcheck docker/*.sh in the lint job is the only other
automated check that reaches this directory, and it sees entrypoint.sh
and rc-daemon.sh.
Because CI only builds the cpu variant, the toolchain image is also
verified by hand: docker build with both TORCH_VARIANT values, and
each image's /opt/venv confirmed to import
sentence_transformers/chromadb/bertopic/docling/torch
correctly. Re-verify after changing docker/Dockerfile,
scripts/install_full_pipeline.sh, or uv.lock; the agent image
has its own hand-run checks, under
"Verify the container" in that file.
The base image is Ubuntu 26.04 LTS with its Python 3.14. The test
job's Linux leg runs on ubuntu-26.04 with the runner's own Python
3.14, and the docker-build job installs uv.lock inside the image
too, so a re-lock that drifts below the cp314 wheel line fails in CI
instead of on a user's machine. pyproject.toml's comment on the
python range explains why
that drift is possible in the first place, and
docs/UV-MIGRATION.md
has the measurements behind
it.
🧪 Running the test suite inside the toolchain container¶
This is not part of running the pipeline. It checks that a change to
docker/Dockerfile or scripts/install_full_pipeline.sh also resolves
the dev dependencies:
1 2 | |