mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-12 04:22:58 +00:00
Use curl instead of wget for Spark and Julia downloads (#1950)
Co-authored-by: Bjørn Jørgensen <bjornjorgensen@users.noreply.github.com>
This commit is contained in:
@@ -36,9 +36,11 @@ WORKDIR /tmp
|
||||
# You need to use https://archive.apache.org/dist/ website if you want to download old Spark versions
|
||||
# But it seems to be slower, that's why we use recommended site for download
|
||||
RUN if [ -z "${scala_version}" ]; then \
|
||||
wget --progress=dot:giga -O "spark.tgz" "https://dlcdn.apache.org/spark/spark-${APACHE_SPARK_VERSION}/spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz"; \
|
||||
curl --progress-bar --location --output "spark.tgz" \
|
||||
"https://dlcdn.apache.org/spark/spark-${APACHE_SPARK_VERSION}/spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz"; \
|
||||
else \
|
||||
wget --progress=dot:giga -O "spark.tgz" "https://dlcdn.apache.org/spark/spark-${APACHE_SPARK_VERSION}/spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}-scala${scala_version}.tgz"; \
|
||||
curl --progress-bar --location --output "spark.tgz" \
|
||||
"https://dlcdn.apache.org/spark/spark-${APACHE_SPARK_VERSION}/spark-${APACHE_SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}-scala${scala_version}.tgz"; \
|
||||
fi && \
|
||||
echo "${spark_checksum} *spark.tgz" | sha512sum -c - && \
|
||||
tar xzf "spark.tgz" -C /usr/local --owner root --group root --no-same-owner && \
|
||||
|
Reference in New Issue
Block a user