diff --git a/Dockerfile b/Dockerfile index c877f59d30..971945c62a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,8 +55,24 @@ RUN dotnet_sdk_version=5.0.102 \ # Copy notebooks COPY ./samples/notebooks/ ${HOME}/Notebooks/ -# Copy package sources -COPY ./NuGet.config ${HOME}/nuget.config +# Add package sources +RUN echo "\ +\ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ +\ +" > ${HOME}/NuGet.config RUN chown -R ${NB_UID} ${HOME} USER ${USER} diff --git a/NuGet.config b/NuGet.config index 0e966f7631..4114b04312 100644 --- a/NuGet.config +++ b/NuGet.config @@ -11,7 +11,6 @@ - diff --git a/docs/CreateBinder.md b/docs/CreateBinder.md index a7e08d33da..6cce5a5492 100644 --- a/docs/CreateBinder.md +++ b/docs/CreateBinder.md @@ -7,9 +7,6 @@ If you want to share notebooks you have made using the .NET Jupyter kernel, one * A GitHub repo and at least one notebook to share * **Dockerfile** to create the Binder image -* A **Nuget.Config** file to provide package sources needed by your notebooks - -You can use the Dockerfile and Nuget.Config files from the folder `samples/my binder` to get started. ### Setup instructions @@ -17,17 +14,13 @@ The repo file structure should look something like this: -The Dockerfile will install the .NET SDK, then copy the notebooks and Nuget.config to the notebooks folder. +The Dockerfile will install the .NET SDK then copy the notebooks to the notebooks folder. ```docker # Copy notebooks COPY ./notebooks/ ${HOME}/notebooks/ -# Copy package sources - -COPY ./NuGet.config ${HOME}/nuget.config - RUN chown -R ${NB_UID} ${HOME} USER ${USER} ``` diff --git a/samples/connect-wpf/NuGet.config b/samples/connect-wpf/NuGet.config index 55cb17af5e..d6b22bfa07 100644 --- a/samples/connect-wpf/NuGet.config +++ b/samples/connect-wpf/NuGet.config @@ -4,6 +4,7 @@ + diff --git a/samples/my binder/Dockerfile b/samples/my binder/Dockerfile index b9e704ce6a..72b760d132 100644 --- a/samples/my binder/Dockerfile +++ b/samples/my binder/Dockerfile @@ -56,8 +56,24 @@ RUN dotnet_sdk_version=5.0.102 \ COPY ./notebooks/ ${HOME}/notebooks/ -# Copy package sources -COPY ./NuGet.config ${HOME}/nuget.config +# Add package sources +RUN echo "\ +\ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ +\ +" > ${HOME}/NuGet.config RUN chown -R ${NB_UID} ${HOME} USER ${USER} diff --git a/samples/my binder/NuGet.config b/samples/my binder/NuGet.config deleted file mode 100644 index 4114b04312..0000000000 --- a/samples/my binder/NuGet.config +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/Microsoft.DotNet.Interactive.ExtensionLab.Tests/Microsoft.DotNet.Interactive.ExtensionLab.Tests.csproj b/src/Microsoft.DotNet.Interactive.ExtensionLab.Tests/Microsoft.DotNet.Interactive.ExtensionLab.Tests.csproj index b45162a48d..e6c345ef0c 100644 --- a/src/Microsoft.DotNet.Interactive.ExtensionLab.Tests/Microsoft.DotNet.Interactive.ExtensionLab.Tests.csproj +++ b/src/Microsoft.DotNet.Interactive.ExtensionLab.Tests/Microsoft.DotNet.Interactive.ExtensionLab.Tests.csproj @@ -20,7 +20,7 @@ - + diff --git a/src/Microsoft.DotNet.Interactive.Jupyter.Tests/Microsoft.DotNet.Interactive.Jupyter.Tests.csproj b/src/Microsoft.DotNet.Interactive.Jupyter.Tests/Microsoft.DotNet.Interactive.Jupyter.Tests.csproj index b351632982..f0d67a515b 100644 --- a/src/Microsoft.DotNet.Interactive.Jupyter.Tests/Microsoft.DotNet.Interactive.Jupyter.Tests.csproj +++ b/src/Microsoft.DotNet.Interactive.Jupyter.Tests/Microsoft.DotNet.Interactive.Jupyter.Tests.csproj @@ -20,7 +20,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/dotnet-interactive.IntegrationTests/dotnet-interactive.IntegrationTests.csproj b/src/dotnet-interactive.IntegrationTests/dotnet-interactive.IntegrationTests.csproj index fc3f6d00cf..2d841271c2 100644 --- a/src/dotnet-interactive.IntegrationTests/dotnet-interactive.IntegrationTests.csproj +++ b/src/dotnet-interactive.IntegrationTests/dotnet-interactive.IntegrationTests.csproj @@ -10,7 +10,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/dotnet-interactive.Tests/dotnet-interactive.Tests.csproj b/src/dotnet-interactive.Tests/dotnet-interactive.Tests.csproj index 5bae77d360..95c2a21c05 100644 --- a/src/dotnet-interactive.Tests/dotnet-interactive.Tests.csproj +++ b/src/dotnet-interactive.Tests/dotnet-interactive.Tests.csproj @@ -15,7 +15,7 @@ - + all