diff --git a/jupyterhub_config.py b/jupyterhub_config.py new file mode 100644 index 0000000..d2d2b09 --- /dev/null +++ b/jupyterhub_config.py @@ -0,0 +1,9 @@ +import os + +c.JupyterHub.spawner_class = 'systemdspawner.SystemdSpawner' + +c.JupyterHub.authenticator_class = 'dummyauthenticator.DummyAuthenticator' + +# FIXME: ensure user conda environment is installed & has necessary packages. +here = os.getcwd() +c.SystemdSpawner.extra_paths = [os.path.join(here, 'user-environment/bin')] \ No newline at end of file diff --git a/littlest-jupyterhub/build.sh b/littlest-jupyterhub/build.sh new file mode 100644 index 0000000..fbfd36a --- /dev/null +++ b/littlest-jupyterhub/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -euo pipefail + +# FIXME: Should this coming from conda-forge instead? +$PYTHON -m pip install --no-deps --ignore-installed \ + jupyterhub-systemdspawner==0.9.10 \ + jupyterhub-dummyauthenticator==0.3.1 \ No newline at end of file diff --git a/littlest-jupyterhub/meta.yaml b/littlest-jupyterhub/meta.yaml new file mode 100644 index 0000000..da45bce --- /dev/null +++ b/littlest-jupyterhub/meta.yaml @@ -0,0 +1,15 @@ +package: + name: littlest-jupyterhub + version: v0.1 + + +build: + number: 13 +requirements: + host: + - python + - pip + + run: + - python + - jupyterhub \ No newline at end of file