Skip to content

Commit 6145a1c

Browse files
mathbunnyrumax-muoto
authored andcommitted
Use argparse to setup spark (jupyter#2082)
1 parent 7637edc commit 6145a1c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

images/pyspark-notebook/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ ENV SPARK_OPTS="--driver-java-options=-Xms1024M --driver-java-options=-Xmx4096M
4141
COPY setup_spark.py /opt/setup-scripts/
4242

4343
# Setup Spark
44-
RUN SPARK_VERSION="${spark_version}" \
45-
HADOOP_VERSION="${hadoop_version}" \
46-
SCALA_VERSION="${scala_version}" \
47-
SPARK_DOWNLOAD_URL="${spark_download_url}" \
48-
/opt/setup-scripts/setup_spark.py
44+
RUN /opt/setup-scripts/setup_spark.py \
45+
--spark-version="${spark_version}" \
46+
--hadoop-version="${hadoop_version}" \
47+
--scala-version="${scala_version}" \
48+
--spark-download-url="${spark_download_url}"
4949

5050
# Configure IPython system-wide
5151
COPY ipython_kernel_config.py "/etc/ipython/"

0 commit comments

Comments
 (0)