Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker changes #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ FROM univizor/spark-base

MAINTAINER Jozko Skrablin <[email protected]>


RUN adduser --uid 3001 --disabled-password --gecos 'Apache Spark' spark

RUN cd /home/spark && wget http://www.apache.org/dist/spark/spark-2.1.0/spark-2.1.0-bin-hadoop2.7.tgz && \
tar xzf spark-2.1.0-bin-hadoop2.7.tgz && \
ln -s spark-2.1.0-bin-hadoop2.7 spark && \
ENV SPARK_VERSION=2.1.0 \
HADOOP_VERSION=2.7

RUN cd /home/spark && wget http://www.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz && \
tar xzf spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz && \
ln -s spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION} spark && \
chown spark: -R /home/spark && \
rm -f spark-2.1.0-bin-hadoop2.7.tgz
rm -f spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz

RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 -O /usr/local/bin/dumb-init && \
chmod +x /usr/local/bin/dumb-init
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ If building on a local system - build using ```docker build -t univizor/spark-do
* Start master and expose web GUI to localhost on 8080:

```bash
docker run --rm -it -p 8081:8081 --name spark-master univizor/spark-docker start-master.sh
docker run --rm -it -p 8080:8080 --name spark-master univizor/spark-docker start-master.sh
```

* Start slave and expose web GUI to localhost on 8081:
Expand Down