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

Proposal to add some 'cookbook' docker files #208

Open
jimzucker opened this issue Feb 26, 2016 · 3 comments
Open

Proposal to add some 'cookbook' docker files #208

jimzucker opened this issue Feb 26, 2016 · 3 comments

Comments

@jimzucker
Copy link

The jenkins image is great, but to make it useful:

  1. you have to install plugins, its odd git/maven are not standard. (its a bit of work to find the plugins you have installed and get the right file format, see Recommendation to add 'how to get list of plugins' #206, Filter out plugins already installed #207
  2. If you modify the volume, by copying files you have to use some other standard patterns in your docker file to get the permissions right. (I'm my example I added some jobs for creating a demo.) Ie you have to change the entry point and install gosu to get it all working

All of these things are standard docker stuff but having a more complete cookbook with example files will help people move faster if they are not docker experts

Example: https://github.com/capitalone/Hygieia/tree/master/test-servers/jenkins

@rtyler as we discussed at the meet up tonight

@jimzucker
Copy link
Author

Related to #197

@zhibek
Copy link

zhibek commented Oct 6, 2017

It seems to me proposals in @jimzucker's repo would be very useful additions to the official jenkins/docker repo.

When setting up new Jenkins instances on Docker, I want to keep all the configuration in code. Currently, the docker image is forcing me to resort to the admin UI.

For example, setup for relatively trivial jobs (i.e. jobs which are defined by a Jenkinsfile in a git repo) should not require admin UI intervention. Ideally this kind of repo could/should be added via a cli command triggered from within the docker script - the only argument should need to be the path to the git repo containing the Jenkinsfile.

@naisanza
Copy link

Currently, when adding a bind-mount, it mounts an empty directory to Jenkins, with root owner. I can't get it to run a "precommand" to change the ownership of the mounted volume to jenkins, which is why I think my docker container is failing, because of the permissions

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

5 participants