Skip to content

Instantly share code, notes, and snippets.

@boehlke
Created September 3, 2015 15:53
Show Gist options
  • Save boehlke/c6f012892c813ca54918 to your computer and use it in GitHub Desktop.
Save boehlke/c6f012892c813ca54918 to your computer and use it in GitHub Desktop.
jenkins with docker (hack, not portable)
FROM jenkins
USER root
RUN groupadd -g 999 hostdocker && usermod -G hostdocker -a jenkins
RUN wget https://get.docker.io/builds/Linux/x86_64/docker-1.7.1 -O /usr/local/bin/docker && chmod +x /usr/local/bin/docker
USER jenkins
ENTRYPOINT ["/bin/tini", "--", "/usr/local/bin/jenkins.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment