~kdsch/containerized-build

how to run a build system in a container
Dockerfile: bump alpine version to 3.20.1
envsetup.sh: let WORKDIR=$PWD
Dockerfile: add comments with URLs; add --no-cache

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.