mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
Move onbuild step to jupyterhub-onbuild
Removes onbuild from from jupyter/jupyterhub image, though it remains incomplete and will not run without a config file.
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -1,12 +1,16 @@
|
||||
# A base docker image that includes juptyerhub and IPython master
|
||||
# An incomplete base docker image for running JupyterHub
|
||||
#
|
||||
# Build your own derivative images starting with
|
||||
#
|
||||
# FROM jupyter/jupyterhub:latest
|
||||
#
|
||||
# And put your jupyterhub_config.py in /srv/jupyterhub/jupyterhub_config.py.
|
||||
#
|
||||
# If you base on jupyter/jupyterhub-onbuild
|
||||
# your jupyterhub_config.py will be added automatically
|
||||
# from your docker directory.
|
||||
|
||||
FROM debian:jessie
|
||||
|
||||
MAINTAINER Jupyter Project <jupyter@googlegroups.com>
|
||||
|
||||
# install nodejs, utf8 locale
|
||||
@@ -32,21 +36,14 @@ ENV PATH=/opt/conda/bin:$PATH
|
||||
# install js dependencies
|
||||
RUN npm install -g configurable-http-proxy && rm -rf ~/.npm
|
||||
|
||||
WORKDIR /srv/
|
||||
ADD . /srv/jupyterhub
|
||||
WORKDIR /srv/jupyterhub/
|
||||
|
||||
RUN python setup.py js && pip install . && \
|
||||
rm -rf node_modules ~/.cache ~/.npm
|
||||
|
||||
WORKDIR /srv/jupyterhub/
|
||||
|
||||
# Derivative containers should add jupyterhub config,
|
||||
# which will be used when starting the application.
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
LABEL org.jupyter.service="jupyterhub"
|
||||
|
||||
ONBUILD ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
|
||||
CMD ["jupyterhub", "-f", "/srv/jupyterhub/jupyterhub_config.py"]
|
||||
CMD ["jupyterhub"]
|
||||
|
11
Dockerfile.onbuild
Normal file
11
Dockerfile.onbuild
Normal file
@@ -0,0 +1,11 @@
|
||||
# JupyterHub Dockerfile that loads your jupyterhub_config.py
|
||||
#
|
||||
# Adds ONBUILD step to jupyter/jupyterhub to load your juptyerhub_config.py into the image
|
||||
#
|
||||
# Derivative images must have jupyterhub_config.py next to the Dockerfile.
|
||||
|
||||
FROM jupyter/jupyterhub
|
||||
|
||||
ONBUILD ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
|
||||
|
||||
CMD ["jupyterhub", "-f", "/srv/jupyterhub/jupyterhub_config.py"]
|
@@ -9,3 +9,4 @@ dependencies:
|
||||
test:
|
||||
override:
|
||||
- docker build -t jupyter/jupyterhub .
|
||||
- docker build -t jupyter/jupyterhub-onbuild -f Dockerfile.onbuild .
|
||||
|
@@ -1,4 +1,4 @@
|
||||
FROM jupyter/jupyterhub
|
||||
FROM jupyter/jupyterhub-onbuild
|
||||
|
||||
MAINTAINER Jupyter Project <jupyter@googlegroups.com>
|
||||
|
||||
|
Reference in New Issue
Block a user