kopia lustrzana https://github.com/jupyterhub/repo2docker
Remove jupyterhub from buildpack and default build script
rodzic
991e4ad4e2
commit
ff3dfffbdb
|
@ -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.
|
||||||
|
@ -511,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 && \
|
||||||
|
|
Ładowanie…
Reference in New Issue