Skip to content

Comments

targets/linux/deb/distro: add minimal images target for DEB distros#957

Draft
invidian wants to merge 1 commit intoproject-dalec:mainfrom
invidian:invidian/deb-containers-minimal
Draft

targets/linux/deb/distro: add minimal images target for DEB distros#957
invidian wants to merge 1 commit intoproject-dalec:mainfrom
invidian:invidian/deb-containers-minimal

Conversation

@invidian
Copy link
Contributor

@invidian invidian commented Feb 3, 2026

What this PR does / why we need it:

This PR adds a new target for building minimal images for DEB-based
distros.

In new implementation, base image for DEB-based distros is not required,
although still supported. New implementation in a nutshell downloads all
required DEB packages into a volume using work image, extracts them into
a target image then runs dpkg --install to run post-install scripts in
the proper environment.

It also moves container-related tests to a separate function so they can
be executed to test both implementations while we keep the old,
experimental implementation around.

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #448

Special notes for your reviewer:

@invidian invidian force-pushed the invidian/deb-containers-minimal branch from 44e9c93 to db334e3 Compare February 3, 2026 16:48
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from db334e3 to 5b5cd00 Compare February 3, 2026 17:35
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from 5b5cd00 to 8052858 Compare February 4, 2026 10:01
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from 8052858 to 04f8665 Compare February 4, 2026 10:41
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from 04f8665 to ab07711 Compare February 4, 2026 11:08
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from ab07711 to fba847f Compare February 4, 2026 16:11
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from 4decea1 to fd3536d Compare February 5, 2026 17:06
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from de959da to ed4fcb5 Compare February 6, 2026 15:08
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from ed4fcb5 to 6936c77 Compare February 9, 2026 10:18
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from f8e74b6 to 0cd445e Compare February 10, 2026 10:32
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from 13fbf90 to c5fd2e3 Compare February 11, 2026 09:58
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from d63d57c to ad6538c Compare February 11, 2026 19:02
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from ad6538c to 493c198 Compare February 12, 2026 09:23
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from 4bcdeb7 to 89b720f Compare February 23, 2026 17:03
@invidian invidian changed the title targets/linux/deb/distro: bootstrap container when possible targets/linux/deb/distro: add minimal images target for DEB distros Feb 23, 2026
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from 89b720f to 8700599 Compare February 23, 2026 17:03
This commit adds a new target for building minimal images for DEB-based
distros.

In new implementation, base image for DEB-based distros is not required,
although still supported. New implementation in a nutshell downloads all
required DEB packages into a volume using work image, extracts them into
a target image then runs dpkg --install to run post-install scripts in
the proper environment.

It also moves container-related tests to a separate function so they can
be executed to test both implementations while we keep the old,
experimental implementation around.

Closes project-dalec#448

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
@invidian invidian force-pushed the invidian/deb-containers-minimal branch from 8700599 to 2bf1f4d Compare February 24, 2026 07:18
@invidian invidian deployed to deploy-docs February 24, 2026 07:18 — with GitHub Actions Active
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REQ] "Distroless" Ubuntu/Debian images

2 participants