Skip to content

Add support for ulimit#2398

Merged
tonistiigi merged 1 commit intomoby:masterfrom
crazy-max:ulimit
Oct 8, 2021
Merged

Add support for ulimit#2398
tonistiigi merged 1 commit intomoby:masterfrom
crazy-max:ulimit

Conversation

@crazy-max
Copy link
Copy Markdown
Member

@crazy-max crazy-max commented Oct 6, 2021

Fixes #1665

Enable setting ulimit for exec commands similar to docker build --ulimit.

Signed-off-by: CrazyMax crazy-max@users.noreply.github.com

@crazy-max crazy-max force-pushed the ulimit branch 2 times, most recently from 9eb65e4 to 9caf612 Compare October 6, 2021 09:12
@crazy-max crazy-max marked this pull request as ready for review October 6, 2021 09:27
@thaJeztah
Copy link
Copy Markdown
Member

(relates to moby/moby#40379)

Copy link
Copy Markdown
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

Define a capability for this in https://github.com/moby/buildkit/blob/master/solver/pb/caps.go . The LLB logic should mark that the capability is needed. In dockerfile check for capability and don't call LLB if it isn't available. So if llb uses this with old daemon they get an error but if dockerfile does same it is ignored(we can log a warning) like before.

@crazy-max crazy-max force-pushed the ulimit branch 2 times, most recently from 3113309 to 6bc417e Compare October 7, 2021 13:40
@crazy-max crazy-max requested a review from tonistiigi October 7, 2021 16:26
@crazy-max crazy-max force-pushed the ulimit branch 2 times, most recently from dcb2de7 to b9a86a6 Compare October 7, 2021 19:21
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
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.

ulimit argument has no effect on buildkit

3 participants