Skip to content

Instantly share code, notes, and snippets.

@suraphanL
Created September 24, 2016 07:58
Show Gist options
  • Save suraphanL/f47d262a6f89b0ccab98f48cafcbf628 to your computer and use it in GitHub Desktop.
Save suraphanL/f47d262a6f89b0ccab98f48cafcbf628 to your computer and use it in GitHub Desktop.
FROM debian:jessie
# Create the jenkins user
RUN useradd -d "/var/jenkins_home" -u 1000 -m -s /bin/bash jenkins
# Create the folders and volume mount points
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