containers / image_build

Monorepo menagerie of container images and associated build automation
Apache License 2.0
12 stars 5 forks source link

Podman/Buildah: Add uCPP package via new build-arg #36

Closed cevich closed 5 months ago

cevich commented 5 months ago

Fixes #35

Since podman supports use of a #include directive in Containerfile it's prudent to include the tooling necessary to fully make use of this feature. Add a symlink from cpp -> ucpp as there isn't one by default.

Also, since downstream users of the podman image may want a way to more easily customize the package list, de-duplicate the specification via a new build-arg.

cevich commented 5 months ago

@iluminae @vrothberg @Luap99 @rhatdan PTAL and LMK if this is good enough. Esp. if the cpp -> ucpp symlink is desirable. I did some manual testing and running the (symlinked) cpp -E foo.in seems to resolve #include directives properly.

cevich commented 5 months ago

If it helps, I pushed a locally built test-image as quay.io/cevich/podman:latest

cevich commented 5 months ago

Force-push: Switch buildah image from cpp -> ucpp to reduce size (by ~60mb) and make Containerfile resemble podman's more closely. This will make future de-duplication easier.

cevich commented 5 months ago

Manually tested new podman and buildah images.