Skip to content

Commit

Permalink
Add docker host group
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-gardener committed Feb 11, 2025
1 parent d46a836 commit 69b49c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ USER root
RUN apt-get update && apt-get install -y gnupg2 lsb-release \
&& curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc https://download.docker.com/linux/debian/gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.asc] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list \
&& apt-get update && apt-get install -y docker-ce docker-ce-cli \
&& usermod -aG docker jenkins \
&& apt-get update && apt-get install -y docker-ce docker-ce-cli containerd.io \
&& usermod -a -G docker jenkins \
&& groupmod -g 992 docker \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# setup jenkins plugins
USER jenkins:jenkins
USER jenkins
RUN jenkins-plugin-cli --plugins \
antisamy-markup-formatter \
cloudbees-folder \
Expand Down

0 comments on commit 69b49c7

Please # to comment.