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

Scoping for docker-related keys in DockerPlugin #796

Closed
thetristan opened this issue May 23, 2016 · 3 comments
Closed

Scoping for docker-related keys in DockerPlugin #796

thetristan opened this issue May 23, 2016 · 3 comments

Comments

@thetristan
Copy link
Contributor

thetristan commented May 23, 2016

I was curious why the dockerBaseImage, dockerExposedPorts, and dockerExposedVolumes keys aren't scoped to the Docker configuration like many of the other keys used by the dockerCommands key.

Is this inconsistency intentional? If not, would you be willing to accept a PR that corrects this?

Thanks for the insight.

@muuki88 muuki88 added the docker label May 26, 2016
@muuki88
Copy link
Contributor

muuki88 commented May 26, 2016

Intentional. We started introducing a scheme on when and how to name keys and scope them.

  • If the setting is plugin specific (e.g. baseImage for docker), we prefix it with the plugin name ( leading to dockerBaseImage not baseImage in Docker).
  • General settings (e.g. mappings) get scoped to the according plugin as values differ from scope to scope.

We try to separate plugin-specific settings from general usable settings.

@muuki88 muuki88 closed this as completed May 26, 2016
@muuki88 muuki88 removed the docker label May 26, 2016
@muuki88
Copy link
Contributor

muuki88 commented May 26, 2016

However if you want to fix an issue related to this exact problem, see #789
Happy to accept pull requests :)

@thetristan
Copy link
Contributor Author

Perfect. Thanks for the fast response. I'll take a look at the issue you referenced. I'd be happy to contribute if possible.

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

No branches or pull requests

2 participants