From 99184b8c19cbe70b08ca8ab339685bf8b0b7d17d Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 2 Jan 2019 10:08:53 -0700 Subject: Initial commit of working files --- Dockerfile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f20433e --- /dev/null +++ b/Dockerfile @@ -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 -- cgit v1.2.3