From 1c1689d3288b973ce9a505edadc6e47245829454 Mon Sep 17 00:00:00 2001 From: "yokowasis@host2" Date: Sun, 20 Oct 2024 00:44:03 +0000 Subject: [PATCH 1/2] jupyterlab tempalte --- public/svgs/jupyterlab.svg | 90 +++++++++++++++++++++++++++++++ templates/compose/jupyterlab.yaml | 21 ++++++++ 2 files changed, 111 insertions(+) create mode 100644 public/svgs/jupyterlab.svg create mode 100644 templates/compose/jupyterlab.yaml diff --git a/public/svgs/jupyterlab.svg b/public/svgs/jupyterlab.svg new file mode 100644 index 000000000..ab2550874 --- /dev/null +++ b/public/svgs/jupyterlab.svg @@ -0,0 +1,90 @@ + +Group.svg +Created using Figma 0.90 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/compose/jupyterlab.yaml b/templates/compose/jupyterlab.yaml new file mode 100644 index 000000000..360067919 --- /dev/null +++ b/templates/compose/jupyterlab.yaml @@ -0,0 +1,21 @@ +# documentation: https://jupyterlab.readthedocs.io/en/latest/ +# slogan: JupyterLab Notebook with C++ (xeus-cling) and Javascript (Deno) Kernel +# tags: jupyter,notebook,python,cpp,deno,jupyterlab +# logo: svgs/jupyterlab.svg +# port: 8008 + +version: '3.8' + +services: + jupyterlab: + image: yokowasis/jupyterlab + expose: + - 8008 + environment: + - SERVICE_FQDN_JUPYTERLAB + - PORT=${PORT:-8008} + - TOKEN=${SERVICE_PASSWORD_TOKEN} + - CONDA_PACKAGES=${CONDA_PACKAGES:-pandas numpy matplotlib seaborn scikit-learn pytorch nltk openpyxl category_encoders scikit-learn tensorflow spacy} + - PIP_PACKAGES=${PIP_PACKAGES:-sastrawi} + volumes: + - jupyterlab_data:/home/mambauser/data From ff3fa1fe0ae87151ce4ae142a5f52f0a52da789f Mon Sep 17 00:00:00 2001 From: "yokowasis@host2" Date: Tue, 22 Oct 2024 12:07:46 +0000 Subject: [PATCH 2/2] healthcheck --- templates/compose/jupyterlab.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/templates/compose/jupyterlab.yaml b/templates/compose/jupyterlab.yaml index 360067919..1795dda35 100644 --- a/templates/compose/jupyterlab.yaml +++ b/templates/compose/jupyterlab.yaml @@ -19,3 +19,15 @@ services: - PIP_PACKAGES=${PIP_PACKAGES:-sastrawi} volumes: - jupyterlab_data:/home/mambauser/data + healthcheck: + test: + [ + "CMD", + "curl", + "-f", + "http://127.0.0.1:8008/login/", + ] + timeout: 5s + interval: 5s + retries: 3 + \ No newline at end of file