Dockerfile for kubernetes jenkins slaves

Adding a Dockerfile for a kubernetes jenkins slave that has docker and
kubectl installed. These agents will be launched as containers and
will be capable of running any of the build setup scripts.

Change-Id: Iabfbac0120803a086f9437d57f7d64267eaf9815
Signed-off-by: Alanny Lopez <alanny.lopez@ibm.com>
diff --git a/kubernetes/Jenkins-JNLP-Slave-Agent/Dockerfile b/kubernetes/Jenkins-JNLP-Slave-Agent/Dockerfile
new file mode 100644
index 0000000..139d4e1
--- /dev/null
+++ b/kubernetes/Jenkins-JNLP-Slave-Agent/Dockerfile
@@ -0,0 +1,21 @@
+# Dockerfile for x86_64 Jenkins JNLP Slave Agent Container with Kubectl and Docker Installed
+
+FROM jenkinsci/jnlp-slave
+
+MAINTAINER Alanny Lopez (alanny.lopez@ibm.com)
+
+USER root
+
+# Download and install Kubectl
+RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s \
+    https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl \
+    && chmod +x ./kubectl \
+    && mv ./kubectl /usr/local/bin/kubectl
+
+# install Docker and grant access to Jenkins user
+RUN curl -sSL https://get.docker.com/ | sh
+RUN usermod -a -G docker jenkins
+
+USER jenkins
+
+ENTRYPOINT ["jenkins-slave"]