Jenkins docker image with config data S3 sync support
2.4K
Docker built image is hosted here: https://registry.hub.docker.com/u/state/jenkins/
Jenkins docker image. Jenkins configuration can be synced from AWS S3 bucket at startup.
By default there is only one-way configuration sync, but you can set up a jenkins
job which syncs ${JENKINS_HOME} to the same S3 bucket, so next time you start
this container you will have all your config loaded at startup time.
The image is based on Fedora base image. It has docker, git, aws cli tools and obviously Jenkins preinstall.
Configuration is done using environment variables.
Authentication to S3 bucket can be passed in via AWS_SECRET_ACCESS_KEY and
AWS_ACCESS_KEY_ID or EC2 instance IAM role.
JENKINS_HOME Default: /var/lib/jenkins. If you decide to change this,
make sure you run docker container with -v <new_jenkins_home> setJENKINS_HOME_S3_BUCKET_NAME Default: unset. If unset, config sync will not runJAVA_OPTS Default: unset.JENKINS_OPTS Default: unset. Any valid jenkins parameter is supporteddocker run \
-e AWS_SECRET_ACCESS_KEY=xxx \
-e AWS_ACCESS_KEY_ID=xxx \
-e JENKINS_HOME_S3_BUCKET_NAME=example-jenkinsconfig-us-east-1 \
-p 8080:8080 state/jenkins
Content type
Image
Digest
sha256:454020ba3…
Size
474.3 MB
Last updated
almost 11 years ago
docker pull state/jenkins