Project build box

Michael Adam obnox at samba.org
Mon Mar 24 19:10:50 UTC 2025


Hi all,

I am writing to introduce my latest hobby/hobbit project buildbox to the Samba community in the hope that someone will find it useful or at least interesting.

The purpose of buildbox is to provide containerized environments and cli tooling for  compiling  software projects and building LaTeX documents and slides

The basic idea is to provide container images readily equipped with the basic build toolchain to prevent developers from having to modify their host with many package installs. Additionally, this allows for more deterministic and reproducible build results.

Flavors currently provided are:

Languages:
* C
* LaTeX +beamer 


OS (Linux distros):
* fedora
* debian
* ubuntu
* opensuse

The code is  located on GitHub: https://github.com/obnoxxx/buildbox

Pre-built images are available on quay.io <http://quay.io/>:
https://quay.io/organization/buildbox



In addition to the mechanism for building container images, the project provides a little cli called builbo (yes, it is supposed to sound like the hobbit.) for running builds in the corresponding containers.

Bulb is supposed to be invoked from the target project's checkout directory which is bind-mounted into the container so that build artifacts are created in the project directory on the host.  Builbo can take a local build script and names of packages to be installed as build dependencies.

Exanple  “bulbo -l c -o debian -b -s ./build.sh -d "pkg1,pkg2,pkg3” 

This uses the Debian cobntainer with C compiler  to build the project in the cwd with the script build.sh after installing packages pkg1, pkg2, and pkg3.

I have so far successfully used builb to compile a simple project  (tinyproxy) and create slide pdfs from latex beamer input.

Currently, I am trying to get samba to build in buildbox.

I am facing the strange problem that configure fails in the containers for  all distributions (fedora, opensuse, debian, ubuntu) with the error that it can not find Python.h even though the python3-devel or python3-dev package is installed.
Interestingly, the same problem does not exist on my Fedora host machine.

Any feedback will be highly appreciated as will be any clues regarding the configure problem.

Cheers - Michael




 



More information about the samba-technical mailing list