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

Change docker port? #2

Open
jkellyinsf opened this issue Jun 27, 2019 · 1 comment
Open

Change docker port? #2

jkellyinsf opened this issue Jun 27, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@jkellyinsf
Copy link

I wrote a bunch of flaky gradle DSL to do what your plugin does, and I'm hoping to delete it all.

But I'm not getting very far. How do I customize docker options, for instance change the docker host to localhost:2376, or set the network mode to host, so the whole build can run within a Jenkins docker container?

@adrianskrobaczrevolut
Copy link
Contributor

Hi @jkellyinsf 🙂
Sorry for late response. Currently plugin doesn't expose the DSL for the docker options configuration. Luckily the library plugin uses for the interaction with docker have planty of configuration options. You can take a look at the its README here: https://github.com/docker-java/docker-java#configuration . Basically you can control the config via env vars, system properties, or some *.properties files, so you should be able to find something that suites your use case.

I hope it helps 🙂 and thanks for your feedback I'll try to introduce some configuration options for docker connection in future releases.

@adrianskrobaczrevolut adrianskrobaczrevolut added the enhancement New feature or request label Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants