From 40698d1d233f29ab81d0c3305cc0631a42977920 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Mon, 15 Jun 2020 15:09:01 +0200 Subject: [PATCH 1/3] wip --- k8s/jupyter/Dockerfile | 9 +++++++++ k8s/jupyter/config.yaml | 17 +++++++++++++++++ k8s/jupyter/notes | 7 +++++++ k8s/jupyter/requirements.txt | 16 ++++++++++++++++ 4 files changed, 49 insertions(+) create mode 100644 k8s/jupyter/Dockerfile create mode 100644 k8s/jupyter/config.yaml create mode 100644 k8s/jupyter/notes create mode 100644 k8s/jupyter/requirements.txt diff --git a/k8s/jupyter/Dockerfile b/k8s/jupyter/Dockerfile new file mode 100644 index 00000000..c9aba0fd --- /dev/null +++ b/k8s/jupyter/Dockerfile @@ -0,0 +1,9 @@ +ARG BASE_CONTAINER=jupyter/datascience-notebook + +FROM $BASE_CONTAINER + +ADD requirements.txt / + +RUN pip install jupyter-client --upgrade + +RUN pip install -r /requirements.txt diff --git a/k8s/jupyter/config.yaml b/k8s/jupyter/config.yaml new file mode 100644 index 00000000..aadd17d4 --- /dev/null +++ b/k8s/jupyter/config.yaml @@ -0,0 +1,17 @@ +proxy: + secretToken: 39f9a0b3f7cb7110e82369a5932a2d875241aaf6bb833b5d96f4d8b3ce22cd05 + +singleuser: + image: + # Get the latest image tag at: + # https://hub.docker.com/r/jupyter/datascience-notebook/tags/ + # Inspect the Dockerfile at: + # https://github.com/jupyter/docker-stacks/tree/master/datascience-notebook/Dockerfile + name: nonsens3/testground-jupyter-base + tag: latest + memory: + limit: 2G + guarantee: 2G + cpu: + limit: 2 + guarantee: 2 diff --git a/k8s/jupyter/notes b/k8s/jupyter/notes new file mode 100644 index 00000000..e03a1d1e --- /dev/null +++ b/k8s/jupyter/notes @@ -0,0 +1,7 @@ +RELEASE=jhub +NAMESPACE=jhub + +helm upgrade --install $RELEASE jupyterhub/jupyterhub \ + --namespace $NAMESPACE \ + --version=0.8.2 \ + --values config.yaml diff --git a/k8s/jupyter/requirements.txt b/k8s/jupyter/requirements.txt new file mode 100644 index 00000000..1b1cd30c --- /dev/null +++ b/k8s/jupyter/requirements.txt @@ -0,0 +1,16 @@ +toml +jinja2 +ndjson +pandas +numpy +matplotlib +jupyter +ipywidgets +bunch +stringcase +papermill +jupyter-ui-poll +jupyter_contrib_nbextensions +durations +seaborn +ipywidgets From 0269ac29b854a68395f29fb324e5b652e324df39 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Thu, 18 Jun 2020 14:22:21 +0200 Subject: [PATCH 2/3] add panel to requirements.txt --- k8s/jupyter/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/k8s/jupyter/requirements.txt b/k8s/jupyter/requirements.txt index 1b1cd30c..3855bede 100644 --- a/k8s/jupyter/requirements.txt +++ b/k8s/jupyter/requirements.txt @@ -14,3 +14,4 @@ jupyter_contrib_nbextensions durations seaborn ipywidgets +panel From d0e7133dabc9b2b75e0fd183f7523f5d1840895d Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Fri, 9 Oct 2020 14:58:07 +0200 Subject: [PATCH 3/3] add highcharts --- k8s/jupyter/notes | 2 ++ k8s/jupyter/requirements.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/k8s/jupyter/notes b/k8s/jupyter/notes index e03a1d1e..c6404ed0 100644 --- a/k8s/jupyter/notes +++ b/k8s/jupyter/notes @@ -1,3 +1,5 @@ +docker build -t nonsens3/testground-jupyter-base . + RELEASE=jhub NAMESPACE=jhub diff --git a/k8s/jupyter/requirements.txt b/k8s/jupyter/requirements.txt index 3855bede..fdac9e29 100644 --- a/k8s/jupyter/requirements.txt +++ b/k8s/jupyter/requirements.txt @@ -4,6 +4,7 @@ ndjson pandas numpy matplotlib +python-highcharts jupyter ipywidgets bunch