Skip to content

Added devices config handling and device HostConfig handling#1400

Merged
dnephin merged 1 commit into
docker:masterfrom
DanElbert:754-device_option
May 11, 2015
Merged

Added devices config handling and device HostConfig handling#1400
dnephin merged 1 commit into
docker:masterfrom
DanElbert:754-device_option

Conversation

@DanElbert
Copy link
Copy Markdown

I'm new to contributing to compose, but this is a stab at adding the device option to the yml config, as per issue #754.

@dnephin
Copy link
Copy Markdown

dnephin commented May 9, 2015

I think this is a good start. I believe we also need to update compose/config.py to be able to merge the lists of devices when using extends

@DanElbert
Copy link
Copy Markdown
Author

I've updated the pull request.

Comment thread docs/yml.md Outdated
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

  • First sentence is unnecessary
  • --device should be in backticks
  • Wrap to 80 chars please!

@aanand
Copy link
Copy Markdown

aanand commented May 11, 2015

Thanks!

For the sake of consistency, we should support a mapping as well as a list. Is that supported? If so, it should be documented.

@aanand
Copy link
Copy Markdown

aanand commented May 11, 2015

For the sake of consistency, we should support a mapping as well as a list.

I retract this, as I was thinking about environment variables. We don't support YAML mappings for volumes. Sorry for the noise.

This looks good - just needs squashing to a single commit.

@DanElbert
Copy link
Copy Markdown
Author

Thanks for the feedback. I was just going to ask about the mapping. :)

Signed-off-by: Dan Elbert <dan.elbert@gmail.com>
@DanElbert DanElbert force-pushed the 754-device_option branch from 53a08c0 to df87bd9 Compare May 11, 2015 15:52
@DanElbert
Copy link
Copy Markdown
Author

All squashed. Let me know if I missed anything else.

@aanand
Copy link
Copy Markdown

aanand commented May 11, 2015

LGTM

1 similar comment
@dnephin
Copy link
Copy Markdown

dnephin commented May 11, 2015

LGTM

dnephin added a commit that referenced this pull request May 11, 2015
Added devices config handling and device HostConfig handling
@dnephin dnephin merged commit 4997fac into docker:master May 11, 2015
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.

5 participants