diff options
author | Stephen Wong <stephen.kf.wong@gmail.com> | 2018-11-01 06:51:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-11-01 06:51:44 +0000 |
commit | d4a2ca01c0ab9532e2ba8abc8ad086784af32d75 (patch) | |
tree | 6d1b4502c6dd0aad9ed6690e858ff2b4a8150997 /clover/spark/docker/spark-submit/Dockerfile | |
parent | d7cd508fc71bdacfb0743568e6a9a584b2d8bf52 (diff) | |
parent | 4f95f77d4f1e1a4455360690c02e06eeb60fc9da (diff) |
Merge "Initial commit for Spark to analyze visibility data" into stable/gambia
Diffstat (limited to 'clover/spark/docker/spark-submit/Dockerfile')
-rw-r--r-- | clover/spark/docker/spark-submit/Dockerfile | 23 |
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 |