Skip to content

Instantly share code, notes, and snippets.

@junaidk
Created January 29, 2021 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junaidk/5afe378e6d85c8ccd0e8949d865bb2f9 to your computer and use it in GitHub Desktop.
Save junaidk/5afe378e6d85c8ccd0e8949d865bb2f9 to your computer and use it in GitHub Desktop.
Jenkins Image with Docker
FROM jenkins/jenkins:2.263.1
USER root
RUN apt-get update && apt-get install -y sudo
RUN echo "jenkins ALL=NOPASSWD: ALL" >> /etc/sudoers
RUN apt-get install -y rsync && apt-get install -y curl
RUN curl -sSL https://get.docker.com/ | sh
RUN usermod -a -G staff jenkins
#RUN groupadd docker
RUN usermod -aG docker jenkins
USER jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment