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

Add persistent storage jenkins template #4221

Merged
merged 1 commit into from Aug 18, 2015

Conversation

bparees
Copy link
Contributor

@bparees bparees commented Aug 17, 2015

No description provided.

@bparees
Copy link
Contributor Author

bparees commented Aug 17, 2015

@mnagy ptal as our resident persistent storage expert.

"volumeMounts": [
{
"name": "${JENKINS_SERVICE_NAME}-data",
"mountPath": "/var/lib/jenkins"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure this dir is not used for other things like configuration. In db images we use the pattern /var/lib/{pgsql,mysql,mongodb}/data

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean make sure content doesn't already exist in that dir in the image before mounting?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, if /var/lib/jenkins contains other files (binaries, config, etc) this mount will override the files.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently the Dockerfile doesn't put anything there explicitly, just don't know about yum.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah it does not, this is working ok in the ephemeral template (which uses an emptydir for this same volume/mount path)

@rhcarvalho
Copy link
Contributor

@bparees maybe update README.md too?

@bparees
Copy link
Contributor Author

bparees commented Aug 18, 2015

good idea, will update the readme.

@bparees
Copy link
Contributor Author

bparees commented Aug 18, 2015

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/3021/) (Image: devenv-fedora_2173)

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/4240/)

@rhcarvalho
Copy link
Contributor

@bparees just a note, maybe you forgot committing changes to the README if you made them.

@bparees
Copy link
Contributor Author

bparees commented Aug 18, 2015

@rhcarvalho ? readme changes are showing up for me.

@bparees
Copy link
Contributor Author

bparees commented Aug 18, 2015

forgot to add file to examples_test. [merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 6566d14

@rhcarvalho
Copy link
Contributor

@bparees it wasn't showing for me, but now it does.

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 6566d14

openshift-bot pushed a commit that referenced this pull request Aug 18, 2015
@openshift-bot openshift-bot merged commit c46dc48 into openshift:master Aug 18, 2015
@bparees bparees deleted the jenkins_persistent branch August 21, 2015 17:42
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

Successfully merging this pull request may close these issues.

None yet

3 participants