From 1228c09d69dd1cc6aaaa4680fa1185d0d24e33f0 Mon Sep 17 00:00:00 2001 From: Pijus Kamandulis Date: Wed, 10 Apr 2019 22:31:17 +0300 Subject: [PATCH] Create jenkins_docker --- docker/jenkins_docker | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker/jenkins_docker diff --git a/docker/jenkins_docker b/docker/jenkins_docker new file mode 100644 index 0000000..f2af914 --- /dev/null +++ b/docker/jenkins_docker @@ -0,0 +1,23 @@ +FROM jenkins/jenkins:lts + +USER root + +RUN apt-get update && \ +apt-get -y install apt-transport-https \ + ca-certificates \ + curl \ + gnupg2 \ + software-properties-common && \ +curl -fsSL https://download.docker.com/linux/$(. /etc/os-release; echo "$ID")/gpg > /tmp/dkey; apt-key add /tmp/dkey && \ +add-apt-repository \ + "deb [arch=amd64] https://download.docker.com/linux/$(. /etc/os-release; echo "$ID") \ + $(lsb_release -cs) \ + stable" && \ +apt-get update && \ +apt-get -y install docker-ce + +RUN apt-get install -y docker-ce + +RUN usermod -a -G docker jenkins + +USER jenkins