Merge pull request #111 from willingc/remove-jhub

Remove jupyterhub from default installs
pull/124/head
Min RK 2017-10-25 15:35:14 +02:00 zatwierdzone przez GitHub
commit fc4aeda557
6 zmienionych plików z 5 dodań i 36 usunięć

Wyświetl plik

@ -1,6 +1,7 @@
"""repo2docker: convert git repositories into jupyter-suitable docker images """repo2docker: convert git repositories into jupyter-suitable docker images
Images produced by repo2docker can be used with Jupyter notebooks standalone or via JupyterHub. Images produced by repo2docker can be used with Jupyter notebooks standalone
or with BinderHub.
Usage: Usage:

Wyświetl plik

@ -64,9 +64,6 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
{% endif -%} {% endif -%}
# make JUPYTERHUB_VERSION a build argument
ARG JUPYTERHUB_VERSION=0.7.2
EXPOSE 8888 EXPOSE 8888
{% if env -%} {% if env -%}
@ -139,21 +136,6 @@ class BuildPack(LoggingConfigurable):
and there are *some* general guarantees of ordering. and there are *some* general guarantees of ordering.
""" """
jupyterhub_version = Unicode(
'0.7.2',
config=True,
help="""JupyterHub version to install.
In general, the JupyterHub version in the image
and the Hub itself should have the same version number.
"""
)
@default('jupyterhub_version')
def _jupyterhub_version_default(self):
"""Allow setting JUPYTERHUB_VERSION via env"""
return os.environ.get('JUPYTERHUB_VERSION') or '0.7.2'
packages = Set( packages = Set(
help=""" help="""
List of packages that are installed in this BuildPack by default. List of packages that are installed in this BuildPack by default.
@ -416,9 +398,7 @@ class BuildPack(LoggingConfigurable):
fileobj=tarf, fileobj=tarf,
tag=image_spec, tag=image_spec,
custom_context=True, custom_context=True,
buildargs={ buildargs={},
'JUPYTERHUB_VERSION': self.jupyterhub_version,
},
decode=True, decode=True,
forcerm=True, forcerm=True,
rm=True rm=True
@ -513,7 +493,6 @@ class PythonBuildPack(BuildPack):
r""" r"""
pip install --no-cache-dir \ pip install --no-cache-dir \
notebook==5.2.0 \ notebook==5.2.0 \
jupyterhub==${JUPYTERHUB_VERSION} \
ipywidgets==6.0.0 \ ipywidgets==6.0.0 \
jupyterlab==0.28 && \ jupyterlab==0.28 && \
jupyter nbextension enable --py widgetsnbextension --sys-prefix && \ jupyter nbextension enable --py widgetsnbextension --sys-prefix && \
@ -735,9 +714,7 @@ class DockerBuildPack(BuildPack):
path=os.getcwd(), path=os.getcwd(),
dockerfile=self.binder_path(self.dockerfile), dockerfile=self.binder_path(self.dockerfile),
tag=image_spec, tag=image_spec,
buildargs={ buildargs={},
'JUPYTERHUB_VERSION': self.jupyterhub_version,
},
decode=True, decode=True,
): ):
yield line yield line

Wyświetl plik

@ -30,7 +30,7 @@ ${CONDA_DIR}/bin/conda config --system --set update_dependencies false
${CONDA_DIR}/bin/conda config --system --set show_channel_urls true ${CONDA_DIR}/bin/conda config --system --set show_channel_urls true
${CONDA_DIR}/bin/conda env update -n root -f /tmp/environment.yml ${CONDA_DIR}/bin/conda env update -n root -f /tmp/environment.yml
${CONDA_DIR}/bin/pip install --no-cache-dir jupyterhub==${JUPYTERHUB_VERSION}
# Clean things out! # Clean things out!
${CONDA_DIR}/bin/conda clean -tipsy ${CONDA_DIR}/bin/conda clean -tipsy

Wyświetl plik

@ -1,8 +1,5 @@
FROM python:3.5 FROM python:3.5
ARG JUPYTERHUB_VERSION
RUN pip3 install jupyterhub==$JUPYTERHUB_VERSION
ENTRYPOINT "/bin/sh" ENTRYPOINT "/bin/sh"
ADD sayhi.sh /usr/local/bin/sayhi.sh ADD sayhi.sh /usr/local/bin/sayhi.sh

Wyświetl plik

@ -1,7 +1,4 @@
FROM jupyter/base-notebook:b4dd11e16ae4 FROM jupyter/base-notebook:b4dd11e16ae4
ARG JUPYTERHUB_VERSION
RUN pip install jupyterhub==$JUPYTERHUB_VERSION
RUN pip install there RUN pip install there
ADD verify verify ADD verify verify

Wyświetl plik

@ -1,8 +1,5 @@
FROM python:3.5 FROM python:3.5
ARG JUPYTERHUB_VERSION
RUN pip3 install jupyterhub==$JUPYTERHUB_VERSION
ENTRYPOINT "/bin/sh" ENTRYPOINT "/bin/sh"
ADD sayhi.sh /usr/local/bin/sayhi.sh ADD sayhi.sh /usr/local/bin/sayhi.sh