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

Support setting services[].ulimits[] to unlimited (-1) #117

Closed
cgzones opened this issue Oct 3, 2024 · 1 comment · Fixed by #122
Closed

Support setting services[].ulimits[] to unlimited (-1) #117

cgzones opened this issue Oct 3, 2024 · 1 comment · Fixed by #122
Labels
bug Something isn't working
Milestone

Comments

@cgzones
Copy link

cgzones commented Oct 3, 2024

The following ulimit compose syntax is currently not supported:

ulimits:
  memlock:
    soft: -1
    hard: -1

resulting in

Error: 
   0: error converting compose file
   1: error reading compose file
   2: File `compose.yml` is not a valid compose file
   3: services.foo.ulimits.memlock.soft: invalid type: integer `-1`, expected u64 at line 43 column 15

Location:
   src/cli/compose.rs:203

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
@k9withabone k9withabone changed the title Support negative services.foo.ulimits.memlock.soft Support setting services[].ulimits[] to unlimited (-1) Oct 4, 2024
@k9withabone k9withabone added bug Something isn't working blocked Waiting on something else to resolve labels Oct 4, 2024
@k9withabone k9withabone added this to the v0.3.1 milestone Oct 4, 2024
@k9withabone
Copy link
Member

Blocked on k9withabone/compose_spec_rs#31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants