Local Container Preflight (tools/local/local_container_build.sh)¶
Use this helper to validate the Docker images locally before cutting a release.
Usage¶
- Build images only:
./tools/local/local_container_build.sh
- Build + smoke test (start compose, wait for
pypnm-apihealth, then tear down):
./tools/local/local_container_build.sh --smoke
Requirements¶
- Docker Engine with buildx and the docker compose plugin (on Debian/Ubuntu you can install
docker.io docker-buildx-plugin docker-compose-plugin, or use the official Docker CE repo). See Install Docker prerequisites if Docker is not set up yet. - Daemon access (run with
sudoor add your user to thedockergroup if needed). - If buildx is missing, Docker falls back to the legacy builder and emits a deprecation warning during image builds.
What it does¶
- Builds compose images (
docker compose --progress plain build). - If
--smokeis set, brings up the stack, waits forpypnm-apito become healthy, then tears down (docker compose down --volumes).