Configured CI/CD with docker and jenkins

This commit is contained in:
Artyom Belousov 2019-10-15 00:21:15 +03:00
parent a715a3c1b8
commit e22e908ce5
11 changed files with 104 additions and 1 deletions

20
jenkins/Dockerfile Normal file
View file

@ -0,0 +1,20 @@
FROM jenkins/jenkins:latest
USER root
RUN apt update
RUN apt install -y sudo
RUN echo "jenkins ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
USER jenkins
RUN sudo apt update
RUN sudo apt install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
RUN sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable"
RUN sudo apt update
RUN sudo apt install -y docker-ce docker-ce-cli containerd.io