Skip to content

Adds support for device/kernel configurations and tmpfs#141

Merged
flowzone-app[bot] merged 4 commits into
mainfrom
compose-devices
Jul 24, 2026
Merged

Adds support for device/kernel configurations and tmpfs#141
flowzone-app[bot] merged 4 commits into
mainfrom
compose-devices

Conversation

@pipex

@pipex pipex commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Adds support for compose properties devices, device_cgroup_rules, ulimits and tmpfs

@pipex
pipex marked this pull request as draft July 17, 2026 21:16
@pipex
pipex force-pushed the compose-devices branch 2 times, most recently from ac78943 to 8cf4f8b Compare July 20, 2026 21:04
pipex added 4 commits July 20, 2026 17:06
Maps the user configured services.devices compose property to the
devices configuration on the container.

CDI syntax is not supported for now

Change-type: patch
The field is read directly from the composition and passed to the
container. No validation is performed in accordance with the spec

Change-type: patch
@pipex
pipex force-pushed the compose-devices branch from 8cf4f8b to 8ccf0f8 Compare July 20, 2026 21:07
@pipex
pipex marked this pull request as ready for review July 20, 2026 21:21
@pipex
pipex requested a review from cywang117 July 20, 2026 21:21
@flowzone-app
flowzone-app Bot enabled auto-merge July 20, 2026 21:32
.collect();
// Sort by target so the serialized form is stable regardless of the
// order the engine reports the devices in (see the volumes sort below).
devices.sort_by(|a, b| a.target.cmp(&b.target));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not do the same for device_cgroup_rules?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly because is more code and is not a common configuration and I'd expect it to be rare than users change the order in the composition. The same is probably true for devices, I just added the sort to match what we do with volumes

@cywang117 cywang117 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼

@flowzone-app
flowzone-app Bot merged commit 0a3b221 into main Jul 24, 2026
58 of 59 checks passed
@flowzone-app
flowzone-app Bot deleted the compose-devices branch July 24, 2026 00:57
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.

2 participants