Use Docker when you need a clean Linux build environment or a reproducible packaging path.
make docker-dev
make docker-run-dev
make rpm-in-docker- On the host, initialize vendored dependencies with
git submodule update --init --recursive. - Build the development image with
make docker-dev. - Start an interactive container with
make docker-run-dev. - Inside the container, run
makeandmake test. The container defaults toO=build-docker, so it does not reuse host CMake caches frombuild/. - If you also need an RPM package, run
make rpm-in-docker.
Use make bootstrap on a local RPM-based host. Inside the development container, the dependency layer is already baked into the image, so the normal build and test commands are sufficient.
- Host system is not compatible with the project’s RPM- and system-library-heavy dependencies.
- You need a disposable CentOS Stream 9 environment for builds, tests, or RPM packaging.
- You want a disposable build/test sandbox.