Skip to content
This repository has been archived by the owner on Jul 6, 2018. It is now read-only.

Add all options #83

Merged
merged 14 commits into from
Mar 17, 2016
Merged

Add all options #83

merged 14 commits into from
Mar 17, 2016

Conversation

jkeiser
Copy link
Contributor

@jkeiser jkeiser commented Mar 14, 2016

This does several things:

  1. Allows you to pass API POST data to /create directly via docker_options: { container_config: { ... } }
  2. Adds every single supportable command line option as a docker option (there are a number of bugs asking for various things).
  3. Fixes a number of bugs where we weren't passing all the user's options to docker run
  4. Makes the flow clearer by clearly differentiating between the converge container (which exists to run chef-client) and the final container (where the user's code runs).
  5. Uses the API exclusively rather than occasionally calling out to docker run (which is one reason we had bugs supporting all the user's options).

@jkeiser jkeiser force-pushed the jk/more-options branch 2 times, most recently from c1e82f9 to c1e933c Compare March 15, 2016 05:09
value.each do |ulimit|
type, values = ulimit.split("=", 2)
soft, hard = values.split(":", 2)
config["HostConfig"]["Ulimits"] << { "Name": type, "Soft": soft, "Hard": hard }
Copy link
Contributor

Choose a reason for hiding this comment

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

think this needs => not : since keys are strings

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoah. How in the world did this work.

@jkeiser jkeiser force-pushed the jk/more-options branch 2 times, most recently from ca395cc to 95e399b Compare March 15, 2016 21:37
(since they may be shared with the actual container)
@jkeiser jkeiser force-pushed the jk/more-options branch 2 times, most recently from b2de67d to 914c6e3 Compare March 15, 2016 22:32
@jkeiser jkeiser force-pushed the jk/more-options branch 2 times, most recently from e847fbd to 1f17d55 Compare March 17, 2016 02:12
@mwrock
Copy link
Contributor

mwrock commented Mar 17, 2016

👍

@jkeiser jkeiser merged commit a9ceca6 into master Mar 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants