Added Dockerfile and .gitignore

This commit is contained in:
Andreas Fahrecker 2023-04-02 18:23:30 +02:00
parent f266f5673d
commit aa77383c56
2 changed files with 25 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.idea/

24
Dockerfile Normal file
View File

@ -0,0 +1,24 @@
FROM jenkins/ssh-agent
USER root
RUN groupadd -g 281 docker
RUN usermod -aG docker jenkins
RUN apt-get update
RUN apt-get install -y\
ca-certificates \
curl \
gnupg
RUN mkdir -m 0755 -p /etc/apt/keyrings
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
RUN echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update
RUN apt-get install -y docker-ce-cli
USER jenkins