Created
January 29, 2021 07:20
-
-
Save junaidk/5afe378e6d85c8ccd0e8949d865bb2f9 to your computer and use it in GitHub Desktop.
Jenkins Image with Docker
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
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