~kdsch/containerized-build

how to run a build system in a container
envsetup.sh: let podman_wrapper be a function, not a variable
envsetup.sh: tag container images with Dockerfile hash
README.md: add Maintenance section

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~kdsch/containerized-build
read/write
git@git.sr.ht:~kdsch/containerized-build

You can also use your local clone with git send-email.

#containerized-build

This repository shows how to containerize a build system for a C application.

#Usage

Load aliases into the current shell environment that wrap build system commands:

. ./envsetup.sh

Build the container image:

build_container_image

Use the usual Meson and Ninja commands as you like:

meson setup build/
git ls-files | entr -cr ./scripts/local-ci.sh
rm -r build/

#Maintenance

The container's base image should be the latest release of an Alpine branch that has a 'bug fixes' or 'sec fixes' support level.

When the Dockerfile is changed, rebuild the container image and run the build system to discover regressions. Fix regressions before committing the new base image.