-
-
Save imranansari/bf8130a5218f6a8f3e1f6731c9d62416 to your computer and use it in GitHub Desktop.
Dockerfile for a Jenkins data volume container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Needs to match the linux version used in jenkins-master | |
FROM debian:jessie | |
MAINTAINER Robert Watkins | |
# user 1000 must match the user id for the jenkins user in jenkins-master | |
RUN useradd -d "/var/jenkins_home" -u 1000 -m -s /bin/bash jenkins | |
RUN mkdir -p /var/log/jenkins | |
RUN chown -R jenkins:jenkins /var/log/jenkins | |
VOLUME ["/var/log/jenkins", "/var/jenkins_home"] | |
USER jenkins | |
CMD ["echo", "Data container for Jenkins"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment