aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2019-01-02 10:08:53 -0700
committerCody Hiar <codyfh@gmail.com>2019-01-02 10:08:53 -0700
commit99184b8c19cbe70b08ca8ab339685bf8b0b7d17d (patch)
treea0899b1b2c7731ef3da128abd64dbfc715060930 /Dockerfile
Initial commit of working files
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile23
1 files changed, 23 insertions, 0 deletions
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