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

Script to set up docker-plugin automatically #53

Open
thismatters opened this issue Feb 7, 2019 · 2 comments
Open

Script to set up docker-plugin automatically #53

thismatters opened this issue Feb 7, 2019 · 2 comments

Comments

@thismatters
Copy link

Have you considered including an init.groovy.d/ script to automate the setup of docker-plugin? Going through the frontend is good for the tutorial, but it is tedious to perform those steps more than once.

The docker-plugin docs has a rough template for the setup script but it excludes the pull strategy and connect method; moreover it seems like the docs are still showing deprecated usage. I understand that configuring Jenkins falls outside the scope of your guide (which is excellent by the way, thank you), but including the groovy script will expose another important aspect of automating Jenkins. Do you find that reasoning sound?

@maxfields2000
Copy link
Owner

That's actually a really good idea, internally on our own systems we do configure much of that pre-startup. You are correct that I left it out of this guide because I wanted people to understand the very small basics, but if I were to fully automate this the basic setup would be in init.groovy.d/ such that it would just work on startup (my internal version at work just does that to the point where you deploy, then click on a "testme" job that verifies everything is working).

I need to tweak my work ones to be "public safe" but that's a great addition. Thanks for the feedback!

@thismatters
Copy link
Author

Thanks for your guide!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants