forked from dotnet/try-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add files from earlier I'd created these in dotnet/interactive#422 Instead of adding them to the binder for .NET interactive, this repo is a better location. Also in this set of changes, I removed the output per suggestion on earlier PR. * add dockerfile and nuget.config * fix dockerfile error * fix title
- Loading branch information
1 parent
84ad0fd
commit e20622e
Showing
7 changed files
with
1,200 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -358,3 +358,5 @@ NuGet.config | |
# MacOS files | ||
.DS_Store | ||
**/.trydotnet-builderror | ||
|
||
.ipynb_checkpoints/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
FROM jupyter/scipy-notebook:latest | ||
|
||
# Install .NET CLI dependencies | ||
|
||
ARG NB_USER=jovyan | ||
ARG NB_UID=1000 | ||
ENV USER ${NB_USER} | ||
ENV NB_UID ${NB_UID} | ||
ENV HOME /home/${NB_USER} | ||
|
||
WORKDIR ${HOME} | ||
|
||
USER root | ||
RUN apt-get update | ||
RUN apt-get install -y curl | ||
|
||
# Install .NET CLI dependencies | ||
RUN apt-get install -y --no-install-recommends \ | ||
libc6 \ | ||
libgcc1 \ | ||
libgssapi-krb5-2 \ | ||
libicu60 \ | ||
libssl1.1 \ | ||
libstdc++6 \ | ||
zlib1g | ||
|
||
RUN rm -rf /var/lib/apt/lists/* | ||
|
||
# Install .NET Core SDK | ||
|
||
# When updating the SDK version, the sha512 value a few lines down must also be updated. | ||
ENV DOTNET_SDK_VERSION 3.1.200 | ||
|
||
RUN curl -SL --output dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz \ | ||
&& dotnet_sha512='5b9398c7bfe7f67cd9f38fdd4e6e429e1b6aaac0fe04672be0f8dca26580fb46906fd1d2deea6a7d3fb07d77e898f067d3ac1805fe077dc7c1adf9515c9bc9a9' \ | ||
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \ | ||
&& mkdir -p /usr/share/dotnet \ | ||
&& tar -zxf dotnet.tar.gz -C /usr/share/dotnet \ | ||
&& rm dotnet.tar.gz \ | ||
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet | ||
|
||
# Enable detection of running in a container | ||
ENV DOTNET_RUNNING_IN_CONTAINER=true \ | ||
# Enable correct mode for dotnet watch (only mode supported in a container) | ||
DOTNET_USE_POLLING_FILE_WATCHER=true \ | ||
# Skip extraction of XML docs - generally not useful within an image/container - helps performance | ||
NUGET_XMLDOC_MODE=skip \ | ||
# Opt out of telemetry until after we install jupyter when building the image, this prevents caching of machine id | ||
DOTNET_TRY_CLI_TELEMETRY_OPTOUT=true | ||
|
||
# Copy notebooks | ||
COPY ./notebooks/ ${HOME}/Notebooks/ | ||
|
||
# Copy package sources | ||
COPY ./NuGet.config ${HOME}/nuget.config | ||
|
||
RUN chown -R ${NB_UID} ${HOME} | ||
USER ${USER} | ||
|
||
#Install nteract | ||
RUN pip install nteract_on_jupyter | ||
|
||
# Install lastest build from master branch of Microsoft.DotNet.Interactive from myget | ||
RUN dotnet tool install -g Microsoft.dotnet-interactive --version 1.0.126104 --add-source "https://dotnet.myget.org/F/dotnet-try/api/v3/index.json" | ||
|
||
ENV PATH="${PATH}:${HOME}/.dotnet/tools" | ||
RUN echo "$PATH" | ||
|
||
# Install kernel specs | ||
RUN dotnet interactive jupyter install | ||
|
||
# Enable telemetry once we install jupyter for the image | ||
ENV DOTNET_TRY_CLI_TELEMETRY_OPTOUT=false | ||
|
||
# Set root to Notebooks | ||
WORKDIR ${HOME}/Notebooks/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<solution> | ||
<add key="disableSourceControlIntegration" value="true" /> | ||
</solution> | ||
<packageSources> | ||
<clear /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" /> | ||
<add key="dotnet-fsharp" value="https://dotnet.myget.org/F/fsharp/api/v3/index.json" /> | ||
<add key="dotnet-try" value="https://dotnet.myget.org/F/dotnet-try/api/v3/index.json" /> | ||
<add key="roslyn" value="https://dotnet.myget.org/F/roslyn/api/v3/index.json" /> | ||
<add key="dotnet-corefxlab" value="https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json" /> | ||
<add key="MachineLearning" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/MachineLearning/nuget/v3/index.json" /> | ||
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" /> | ||
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" /> | ||
<add key="dotnet3-dev" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet3.1/nuget/v3/index.json" /> | ||
<add key="dotnet5" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet5/nuget/v3/index.json" /> | ||
<add key="PSGallery" value="https://www.powershellgallery.com/api/v2/" /> | ||
</packageSources> | ||
</configuration> |
Oops, something went wrong.