Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ulimit #2398

Merged
merged 1 commit into from
Oct 8, 2021
Merged

Add support for ulimit #2398

merged 1 commit into from
Oct 8, 2021

Conversation

crazy-max
Copy link
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
Member

(relates to moby/moby#40379)

Copy link
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.

client/llb/exec.go Outdated Show resolved Hide resolved
frontend/dockerfile/dockerfile_test.go Show resolved Hide resolved
@crazy-max crazy-max force-pushed the ulimit branch 2 times, most recently from 3113309 to 6bc417e Compare October 7, 2021 13:40
client/llb/exec.go Outdated Show resolved Hide resolved
@crazy-max crazy-max requested a review from tonistiigi October 7, 2021 16:26
client/llb/exec.go Outdated Show resolved Hide resolved
client/llb/exec.go Outdated Show resolved Hide resolved
executor/oci/spec.go Show resolved Hide resolved
@crazy-max crazy-max force-pushed the ulimit branch 2 times, most recently from dcb2de7 to b9a86a6 Compare October 7, 2021 19:21
client/llb/exec.go Outdated Show resolved Hide resolved
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