-
-
Notifications
You must be signed in to change notification settings - Fork 31
[JENKINS-53304] Mount volume on the whole /evergreen #207
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,12 +41,13 @@ restarted if necessary. | |
.Starting Jenkins Evergreen | ||
[source,bash] | ||
---- | ||
mkdir $PWD/jenkins-home && \ | ||
docker volume create jenkins-evergreen-data && \ | ||
docker run --name evergreen \ | ||
--restart=always \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice to have so that Evergreen restarts with the host if restarted. A bit easier for our users, which I guess is the goal :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good question. I think using |
||
-ti \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is nice to allow 'ctrl-C' ing the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Generally, Basically, if you just run, then ctrl-c, |
||
-p 8080:8080 \ | ||
-u 0 \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-v $PWD/jenkins-home:/evergreen/jenkins/home \ | ||
-v jenkins-evergreen-data:/evergreen/ \ | ||
-e LOG_LEVEL=debug \ | ||
jenkins/evergreen:docker-cloud | ||
---- | ||
|
@@ -62,7 +63,7 @@ docker exec evergreen cat /evergreen/jenkins/home/secrets/initialAdminPassword | |
---- | ||
|
||
|
||
=== Getting started with an AWS-baesd installation | ||
=== Getting started with an AWS-based installation | ||
|
||
[NOTE] | ||
==== | ||
|
@@ -155,7 +156,7 @@ documents: | |
| link:https://github.com/jenkinsci/jep/blob/master/jep/309[Bill of Materials] | ||
|
||
| JEP-310 | ||
| link:https://github.com/jenkinsci/jep/blob/master/jep/310 [Evergreen AWS auto-configuration] | ||
| link:https://github.com/jenkinsci/jep/blob/master/jep/310[Evergreen AWS auto-configuration] | ||
|
||
|=== | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching to using a volume as generally recommended to avoid all sorts of permission issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
Is there a simple way to move a
jenkins-home
predating this?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Depends on your definition of simple. Yes, there would be a way, though not sure we're at a stage where we should spend time of this.
I would probably basically run an evergreen container with bash (to get the right perms), just to move data around.
Something like, untested:
docker volume create jenkins-evergreen-data docker run -v jenkins-evergreen-data:/evergreen -v $PWD/jenkins-home:/jenkins-home:ro -ti jenkins/evergreen:docker-cloud bash
Then, initiate a copy from inside the container from
/jenkin-home
to/evergreen/jenkins/home
. But again, not worth it's worth the hassle at this stage. I can help more if you're still willing to do it.And for the
/evergreen/jenkins/var
part, you could probablydocker cp
the content...