From 16a18fc2a8b64473d547699d56015dd941daeec7 Mon Sep 17 00:00:00 2001 From: rprimet Date: Tue, 3 Jul 2018 22:25:20 +0200 Subject: [PATCH 1/3] Add DockerSpawner command in JupyterHub config This may be useful to DockerSpawner users who want to create custom images using repo2docker --- docs/source/usage.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 3a5cc4ad..26e689b1 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -63,6 +63,11 @@ you should put the following in ``requirements.txt`` or ``environment.yml``:: jupyterhub==0.8.* +In your JupyterHub configuration, you may also need to pass a command to the Spawner +to run ``jupyterhub-singleuser``, for instance if using ``DockerSpawner``:: + + c.DockerSpawner.cmd = ['jupyterhub-singleuser'] + Running ``repo2docker`` locally ------------------------------- From b2de5546ad5f5dafb942d75d145d73149229287b Mon Sep 17 00:00:00 2001 From: rprimet Date: Wed, 4 Jul 2018 08:37:20 +0200 Subject: [PATCH 2/3] Edit to be more affirmative --- docs/source/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 26e689b1..d475c2dd 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -63,8 +63,8 @@ you should put the following in ``requirements.txt`` or ``environment.yml``:: jupyterhub==0.8.* -In your JupyterHub configuration, you may also need to pass a command to the Spawner -to run ``jupyterhub-singleuser``, for instance if using ``DockerSpawner``:: +If your instance of JupyterHub uses ``DockerSpawner``, you will need to set its +command to run ``jupyterhub-singleuser``:: c.DockerSpawner.cmd = ['jupyterhub-singleuser'] From fb370afbfe440c8538ed4f73b939cda7bcfc61ec Mon Sep 17 00:00:00 2001 From: rprimet Date: Wed, 4 Jul 2018 08:41:23 +0200 Subject: [PATCH 3/3] Mention the jupyterhub config file --- docs/source/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/usage.rst b/docs/source/usage.rst index d475c2dd..bae9541f 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -64,7 +64,7 @@ you should put the following in ``requirements.txt`` or ``environment.yml``:: jupyterhub==0.8.* If your instance of JupyterHub uses ``DockerSpawner``, you will need to set its -command to run ``jupyterhub-singleuser``:: +command to run ``jupyterhub-singleuser`` by adding this line in your configuration file:: c.DockerSpawner.cmd = ['jupyterhub-singleuser']