3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Import Jenkins Configuration to a dockerized jenkins

Posted at

I have been maintaining a lightweight docker container for
Jenkins
recently.
Below is a tutorial on how to migrate using it.

First, create a "data volume". In the following example, I named this source
"jenkins". From the subsequent management, I will be referring to this
container.

docker run -v /jenkins -name jenkins busybox true

We then import our jenkins job by linking the volume to a tar command

tar -c jobs/*/config.xml | docker run -a stdin -i --volumes-from jenkins busybox tar -xC /jenkins

Now that the Jenkins workspace is pre-populated, the same volume can be referred
to when launching a container.

docker run --volumes-from jenkins -d aespinosa/jenkins

Originally posted in http://aespinosa.github.io/blog/2014-03-05-import-jenkins-configuration-to-docker.html

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?