Skip to content

Commit 18a0dc1

Browse files
author
Aard Keimpema
committed
When using docker in bridge mode, jupyter notebook 5.5 will report
the docker ID as the host name. This will likely confuse users. jupyter/docker-stacks#642 In future versions of jupyter there will be an option to overide the hostname. For now fall back to notebook 5.4. In singularity we continue to use version 5.5
1 parent 9ece6a0 commit 18a0dc1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN wget http://launchpadlibrarian.net/165141962/libeigen3-dev_3.2.0-8_all.deb \
2020
# install jupyter
2121
RUN apt-get install -y gfortran build-essential python-numpy-dev \
2222
&& pip install --upgrade pip \
23-
&& /usr/local/bin/pip install jupyter
23+
&& /usr/local/bin/pip install "notebook<5.5"
2424

2525
# Dependencies - RPFITS
2626
RUN wget ftp://ftp.atnf.csiro.au/pub/software/rpfits/rpfits-2.24.tar.gz \

singularity/Singularity.docker

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ IncludeCmd: no
1414
# Remove Juputer user imported from Docker
1515
sed -i '/jupyter/d' /etc/passwd
1616
sed -i '/jupyter/d' /etc/shadow
17+
# In docker we use jupyter notebook 5.4, however, in Singularity we
18+
# can use the most recent version
19+
/usr/local/bin/pip install -U --upgrade-strategy=eager notebook
1720

1821
%environment
1922
unset XDG_RUNTIME_DIR

0 commit comments

Comments
 (0)