-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.sh
32 lines (25 loc) · 760 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#https://towardsdatascience.com/apache-spark-cluster-on-docker-ft-a-juyterlab-interface-418383c95445
# -- Software Stack Version
SPARK_VERSION="3.1.2"
HADOOP_VERSION="3.2"
JUPYTERLAB_VERSION="2.1.5"
# -- Building the Images
docker build \
-f cluster-base.Dockerfile \
-t cluster-base .
docker build \
--build-arg spark_version="${SPARK_VERSION}" \
--build-arg hadoop_version="${HADOOP_VERSION}" \
-f spark-base.Dockerfile \
-t spark-base .
docker build \
-f spark-master.Dockerfile \
-t spark-master .
docker build \
-f spark-worker.Dockerfile \
-t spark-worker .
docker build \
--build-arg spark_version="${SPARK_VERSION}" \
--build-arg jupyterlab_version="${JUPYTERLAB_VERSION}" \
-f jupyterlab.Dockerfile \
-t jupyterlab .