Skip to content

Interactive docker image #709

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
change default notebook directory
  • Loading branch information
indy committed Oct 12, 2020
commit 873fa34c64995c4f5e6a3b3cc467717644b72876
8 changes: 4 additions & 4 deletions docker/images/interactive/apache-spark/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ ENV JUPYTER_ENABLE_LAB=true
USER root

COPY bin/* /usr/local/bin/
COPY *.ipynb ${HOME}/nb/
COPY *.ipynb ${HOME}/dotnet.spark/

RUN cd / \
&& wget -q --show-progress --progress=bar:force:noscroll https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz \
&& tar -xvzf spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz \
&& mv spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION} spark \
&& rm spark-${SPARK_VERSION}-bin-hadoop${HADOOP_VERSION}.tgz \
&& chmod 755 /usr/local/bin/start-spark-debug.sh \
&& chown -R ${NB_UID} ${HOME} \
&& cd ${HOME}/nb
&& cp /dotnet/Debug/netcoreapp${DOTNET_CORE_VERSION}/*.jar ${HOME}/dotnet.spark/ \
&& chown -R ${NB_UID} ${HOME}

USER ${USER}
WORKDIR ${HOME}/nb/
WORKDIR ${HOME}/dotnet.spark
31 changes: 0 additions & 31 deletions docker/images/interactive/apache-spark/supervisor.conf

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

spark_short_version="${SPARK_VERSION:0:3}"
# Start the .NET for Apache Spark backend in debug mode

cd /dotnet/Debug/netcoreapp3.1 || exit
/spark/bin/spark-submit --class org.apache.spark.deploy.dotnet.DotnetRunner --jars "/dotnet/Debug/netcoreapp3.1/*.jar" --master local microsoft-spark-2.4.x-0.12.1.jar debug 5567
cd "${HOME}"/dotnet.spark || exit
/spark/bin/spark-submit --class org.apache.spark.deploy.dotnet.DotnetRunner --jars "${HOME}/dotnet.spark/*.jar" --master local microsoft-spark-"${spark_short_version}".x-"${DOTNET_SPARK_VERSION}".jar debug 5567
2 changes: 1 addition & 1 deletion docker/images/interactive/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -o errexit # abort on nonzero exitstatus
set -o nounset # abort on unbound variable
set -o pipefail # don't hide errors within pipes

readonly image_repository='mcr.microsoft.com'
readonly image_repository='3rdman'
readonly supported_apache_spark_versions=("2.3.3" "2.3.4" "2.4.0" "2.4.1" "2.4.3" "2.4.4" "2.4.5" "2.4.6")
readonly supported_dotnet_spark_versions=("0.9.0" "0.10.0" "0.11.0" "0.12.1")
readonly dotnet_core_version=3.1
Expand Down
1 change: 0 additions & 1 deletion docker/images/interactive/dotnet-interactive/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ USER ${USER}
RUN pip install nteract_on_jupyter \
&& dotnet tool install -g Microsoft.dotnet-interactive \
&& dotnet interactive jupyter install