-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.NET8 initial, include latest samples
- Loading branch information
Showing
20 changed files
with
5,817 additions
and
793 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 |
---|---|---|
|
@@ -2,69 +2,86 @@ name: ci | |
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
branches: [ dotnet8 ] | ||
|
||
env: | ||
# Use docker.io for Docker Hub if empty | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
# This is used to complete the identity challenge | ||
# with sigstore/fulcio when running outside of PRs. | ||
id-token: write | ||
|
||
steps: | ||
- | ||
name: Prepare | ||
- name: Prepare | ||
id: prep | ||
run: | | ||
echo ::set-output name=datetag::$(date -u +'%Y%m%d') | ||
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') | ||
- | ||
name: Set up Docker Buildx | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v1 | ||
|
||
# Login against a Docker registry except on PR | ||
# https://github.com/docker/login-action | ||
- name: Log into registry ${{ env.REGISTRY }} | ||
if: github.event_name != 'pull_request' | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Build and push minimal-dotnet | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push minimal-dotnet | ||
id: docker_build_minimal | ||
uses: docker/build-push-action@v2 | ||
uses: docker/build-push-action@v3.2.0 | ||
with: | ||
push: true | ||
build-args: base_image=jupyter/minimal-notebook | ||
tags: pocki/minimal-dotnet:latest, pocki/minimal-dotnet:${{ steps.prep.outputs.datetag }} | ||
tags: pocki/jupyter-dotnet/minimal-dotnet8:latest, pocki/jupyter-dotnet/minimal-dotnet8:${{ steps.prep.outputs.datetag }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.created=${{ steps.prep.outputs.created }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
- | ||
name: Image digest minimal-dotnet | ||
platforms: linux/amd64 | ||
|
||
- name: Image digest minimal-dotnet | ||
run: echo ${{ steps.docker_build_minimal.outputs.digest }} | ||
- | ||
name: Build and push scipy-dotnet | ||
|
||
- name: Build and push scipy-dotnet | ||
id: docker_build_scipy | ||
uses: docker/build-push-action@v2 | ||
uses: docker/build-push-action@v3.2.0 | ||
with: | ||
push: true | ||
build-args: base_image=jupyter/scipy-notebook | ||
tags: pocki/scipy-dotnet:latest, pocki/scipy-dotnet:${{ steps.prep.outputs.datetag }} | ||
tags: pocki/jupyter-dotnet/scipy-dotnet8:latest, pocki/jupyter-dotnet/scipy-dotnet8:${{ steps.prep.outputs.datetag }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.created=${{ steps.prep.outputs.created }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
- | ||
name: Image digest scipy-dotnet | ||
platforms: linux/amd64 | ||
|
||
- name: Image digest scipy-dotnet | ||
run: echo ${{ steps.docker_build_scipy.outputs.digest }} | ||
- | ||
name: Build and push r-dotnet | ||
|
||
- name: Build and push r-dotnet | ||
id: docker_build_r | ||
uses: docker/build-push-action@v2 | ||
uses: docker/build-push-action@v3.2.0 | ||
with: | ||
push: true | ||
build-args: base_image=jupyter/r-notebook | ||
tags: pocki/r-dotnet:latest, pocki/r-dotnet:${{ steps.prep.outputs.datetag }} | ||
tags: pocki/jupyter-dotnet/r-dotnet8:latest, pocki/jupyter-dotnet/r-dotnet8:${{ steps.prep.outputs.datetag }} | ||
labels: | | ||
org.opencontainers.image.source=${{ github.event.repository.html_url }} | ||
org.opencontainers.image.created=${{ steps.prep.outputs.created }} | ||
org.opencontainers.image.revision=${{ github.sha }} | ||
- | ||
name: Image digest r-dotnet | ||
platforms: linux/amd64 | ||
|
||
- name: Image digest r-dotnet | ||
run: echo ${{ steps.docker_build_r.outputs.digest }} |
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
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
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 |
---|---|---|
@@ -1,27 +1,40 @@ | ||
# Jupyter Docker Stacks with .NET kernel | ||
|
||
Extending the [Jupyter Docker Stack images](https://github.com/jupyter/docker-stacks) with .NET 7 kernel to run notebooks in C#, F# and Powershell | ||
Extending the [Jupyter Docker Stack images](https://github.com/jupyter/docker-stacks) with .NET 8 kernel to run notebooks in C#, F# and Powershell | ||
|
||
.NET kernel is provided by [.NET Interactive](https://github.com/dotnet/interactive) | ||
.NET 6 kernel in tag 20220210 and later | ||
.NET 7 kernel in tag 20230315 and later | ||
|
||
## Actual following images are created: | ||
* [minimal-dotnet](https://hub.docker.com/r/pocki/minimal-dotnet) ![Docker Image Version (latest by date)](https://img.shields.io/docker/v/pocki/minimal-dotnet) based on jupyter/minimal-notebook | ||
* [scipy-dotnet](https://hub.docker.com/r/pocki/scipy-dotnet)![Docker Image Version (latest by date)](https://img.shields.io/docker/v/pocki/scipy-dotnet) based on jupyter/scipy-notebook | ||
* [r-dotnet](https://hub.docker.com/r/pocki/r-dotnet) ![Docker Image Version (latest by date)](https://img.shields.io/docker/v/pocki/r-dotnet) based on jupyter/r-notebook | ||
|
||
All images contain some .NET sample notebooks. | ||
|
||
## Get started | ||
|
||
This images can be started as the original Jupyter Docker Stack images (see the Jupyter Docker Stacks [ReadTheDocs](https://jupyter-docker-stacks.readthedocs.io/en/latest/index.html)) | ||
|
||
``` | ||
docker run -p 8888:8888 pocki/minimal-dotnet:latest | ||
docker run -p 8888:8888 ghcr.io/pocki/jupyter-dotnet/minimal-dotnet8:latest | ||
``` | ||
|
||
To persistant the notebooks mount the directory: `/home/jovyan/Notebooks` | ||
``` | ||
docker run -p 8888:8888 pocki/scipy-dotnet:latest -v "$PWD":/home/jovyan/Notebooks | ||
docker run -p 8888:8888 ghcr.io/pocki/jupyter-dotnet/pocki/scipy-dotnet8:latest -v "$PWD":/home/jovyan/Notebooks | ||
``` | ||
|
||
All images contain some .NET sample notebooks. | ||
|
||
# .NET 8 | ||
|
||
New: Docker Images have new name and changed to ghcr.io | ||
|
||
|
||
|
||
# .NET 6/.NET 7 | ||
|
||
.NET 6 kernel in tag 20220210 and later | ||
.NET 7 kernel in tag 20230315 and later | ||
|
||
Docker Images are on Docker Hub | ||
|
||
## Following images are created: | ||
* [minimal-dotnet](https://hub.docker.com/r/pocki/minimal-dotnet) ![Docker Image Version (latest by date)](https://img.shields.io/docker/v/pocki/minimal-dotnet) based on jupyter/minimal-notebook | ||
* [scipy-dotnet](https://hub.docker.com/r/pocki/scipy-dotnet)![Docker Image Version (latest by date)](https://img.shields.io/docker/v/pocki/scipy-dotnet) based on jupyter/scipy-notebook | ||
* [r-dotnet](https://hub.docker.com/r/pocki/r-dotnet) ![Docker Image Version (latest by date)](https://img.shields.io/docker/v/pocki/r-dotnet) based on jupyter/r-notebook | ||
|
||
|
Oops, something went wrong.