summaryrefslogtreecommitdiffstats
path: root/clover/spark/docker/spark-submit/Dockerfile
diff options
context:
space:
mode:
authorStephen Wong <stephen.kf.wong@gmail.com>2018-11-01 06:51:22 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-11-01 06:51:22 +0000
commitf0b9289bc4b179d701efc4603ae136f241cf10ec (patch)
treee5fb3438f964f343c6cb1a48b2aa881376a2d5b5 /clover/spark/docker/spark-submit/Dockerfile
parentaedfdecd5647fc5c2de987e49a487053c78db8fc (diff)
parent2139f983fbe71bf6411259e8ddb460a79663dcb8 (diff)
Merge "Initial commit for Spark to analyze visibility data"
Diffstat (limited to 'clover/spark/docker/spark-submit/Dockerfile')
-rw-r--r--clover/spark/docker/spark-submit/Dockerfile23
1 files changed, 23 insertions, 0 deletions
diff --git a/clover/spark/docker/spark-submit/Dockerfile b/clover/spark/docker/spark-submit/Dockerfile
new file mode 100644
index 0000000..898df1a
--- /dev/null
+++ b/clover/spark/docker/spark-submit/Dockerfile
@@ -0,0 +1,23 @@
+# Copyright (c) Authors of Clover
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+
+FROM java:8
+
+RUN mkdir /spark
+WORKDIR /spark
+RUN wget https://archive.apache.org/dist/spark/spark-2.3.2/spark-2.3.2-bin-hadoop2.7.tgz
+# COPY spark-2.3.2-bin-hadoop2.7.tgz /spark
+RUN tar -xvzf spark-2.3.2-bin-hadoop2.7.tgz
+
+COPY runner.sh /spark/spark-2.3.2-bin-hadoop2.7
+COPY runner_fast.sh /spark/spark-2.3.2-bin-hadoop2.7
+WORKDIR /spark/spark-2.3.2-bin-hadoop2.7
+
+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
+RUN chmod +x ./kubectl
+
+CMD ./runner.sh