Dockerfile for a Jenkins data volume container
This file contains 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