Merge branch 'master' into test_editable-flag

This commit is contained in:
Min RK
2020-02-26 14:24:16 +01:00
committed by GitHub
4 changed files with 12 additions and 19 deletions

View File

@@ -14,7 +14,7 @@ The Littlest JupyterHub
:target: https://the-littlest-jupyterhub.readthedocs.io/en/latest/contributing/index.html
**The Littlest JupyterHub** (TLJH) distribution helps you provide Jupyter Notebooks
to 1-50 users on a single server.
to 1-100 users on a single server.
The primary audience are people who do not consider themselves 'system administrators'
but would like to provide hosted Jupyter Notebooks for their students or users.

View File

@@ -18,10 +18,8 @@ Hub environment
===============
JupyterHub is run from a python3 virtual environment located in ``/opt/tljh/hub``. It
uses the system's installed python and is owned by root. It also contains a ``npm``
install of `configurable-http-proxy <https://github.com/jupyterhub/configurable-http-proxy>`_
and a binary install of `traefik <http://traefik.io/>`_. This virtual environment is
completely managed by TLJH.
uses the system's installed python and is owned by root. It also contains a binary install
of `traefik <http://traefik.io/>`_. This virtual environment is completely managed by TLJH.
User environment
================
@@ -60,10 +58,9 @@ hard to access the ``tljh-config`` command used to change most config parameters
Systemd Units
=============
TLJH places 3 systemd units on your computer. They all start on system startup.
TLJH places 2 systemd units on your computer. They all start on system startup.
#. ``jupyterhub.service`` - starts the JupyterHub service.
#. ``configurable-http-proxy.service`` - starts the nodejs based proxy that is used by JupyterHub.
#. ``traefik.service`` - starts traefik proxy that manages HTTPS
In addition, each running Jupyter user gets their own systemd unit of the name ``jupyter-<username>``.

View File

@@ -8,7 +8,7 @@ Looking at Logs
They contain a forensic record of what individual pieces of software were doing
before things went bad, and can help us understand the problem so we can fix it.
TLJH collects logs from JupyterHub, Configurable HTTP Proxy, & from each individual
TLJH collects logs from JupyterHub, Traefik Proxy, & from each individual
user's notebook server. All the logs are accessible via `journalctl <https://www.freedesktop.org/software/systemd/man/journalctl.html>`_.
The installer also writes logs to disk, to help with cases where the
installer did not succeed.

View File

@@ -258,18 +258,14 @@ def ensure_user_environment(user_requirements_txt_file):
if conda.check_miniconda_version(USER_ENV_PREFIX, miniconda_new_version):
conda_version = '4.8.1'
elif conda.check_miniconda_version(USER_ENV_PREFIX, miniconda_old_version):
conda_version = '4.5.8'
# If no prior miniconda installation is found, we can install a newer version
else:
if conda.check_miniconda_version(
USER_ENV_PREFIX, miniconda_old_version
):
conda_version = '4.5.8'
# If no prior miniconda installation is found, we can install a newer version
else:
logger.info('Downloading & setting up user environment...')
with conda.download_miniconda_installer(miniconda_new_version, miniconda_installer_md5) as installer_path:
conda.install_miniconda(installer_path, USER_ENV_PREFIX)
conda_version = '4.8.1'
logger.info('Downloading & setting up user environment...')
with conda.download_miniconda_installer(miniconda_new_version, miniconda_installer_md5) as installer_path:
conda.install_miniconda(installer_path, USER_ENV_PREFIX)
conda_version = '4.8.1'
conda.ensure_conda_packages(USER_ENV_PREFIX, [
# Conda's latest version is on conda much more so than on PyPI.