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

Limit Image -> Run dependencies to those used #199

Merged
merged 2 commits into from
Mar 18, 2018

Conversation

electrofelix
Copy link
Contributor

Use searching in the resource collection to limit adding dependencies on
Docker::Image for only those Docker::Run resources defined to use the
specific image.

This reduces the likelihood of accidental cyclical dependencies where
consumers defined a manifest per service containing an image and run,
and then try to add a dependency from one service class onto another.

Use searching in the resource collection to limit adding dependencies on
Docker::Image for only those Docker::Run resources defined to use the
specific image.

This reduces the likelihood of accidental cyclical dependencies where
consumers defined a manifest per service containing an image and run,
and then try to add a dependency from one service class onto another.

Fixes puppetlabs#640
Test that a Docker::Image resource can depend on an unrelated
Docker::Run resource. This ensures that multiple classes making use of
Docker::Image and Docker::Run resources for unrelated services may
create simple dependencies between classes such as the following
definition does not trigger a dependency cycle when both classes are in
turn using Docker::Image & Docker::Run for unrelated images.

  Class['database'] -> Class['application']
@electrofelix
Copy link
Contributor Author

Originally reported as garethr/garethr-docker#640 and submitted as garethr/garethr-docker#641

@davejrt
Copy link
Contributor

davejrt commented Mar 18, 2018

LGTM

@davejrt davejrt merged commit 856fb0c into puppetlabs:master Mar 18, 2018
mihaibuzgau added a commit to mihaibuzgau/puppetlabs-docker that referenced this pull request Jul 5, 2018
Limit Image -> Run dependencies to those used
Merge pull request puppetlabs#202 from electrofelix/onlyif-running

Add support for onlyif in a docker exec
@MWilsonPuppet MWilsonPuppet added this to the V2.0.0 milestone Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants