Skip to content

Commit

Permalink
Fixed bug with jupyterlab terminado not using bash. Fixed basemap ver…
Browse files Browse the repository at this point in the history
…sion.
  • Loading branch information
asreimer committed Oct 16, 2020
1 parent 35417ef commit b70e14f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions resen-core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#FROM earthcubeingeo/resen-base:2020.1.0
#FROM earthcubeingeo/resen-base:2020.2.0
FROM resenbasetest:latest

LABEL maintainer="Ingeo Team <ingeo-team@ingeo.datatransport.org>"
Expand Down Expand Up @@ -46,7 +46,7 @@ RUN apt-get update && \
npm nodejs && \
rm -rf /var/lib/apt/lists/*

# Create python 2.7 and python 3.6 virtual environments
# Create python 3.8 virtual environment
USER $NB_USER
RUN /bin/bash -c 'mkdir -p /home/$NB_USER/envs && \
python3 -m virtualenv -p /usr/bin/python3.8 /home/$NB_USER/envs/py38'
Expand Down Expand Up @@ -116,7 +116,7 @@ RUN echo "TERM=xterm-256color" >> /home/$NB_USER/.bashrc && \
# Set default jupyter terminal shell
RUN /bin/bash -cl 'source /home/$NB_USER/envs/py38/bin/activate && \
jupyter lab --generate-config'
RUN sed -i -e 's/#c.NotebookApp.terminado_settings = {}/c.NotebookApp.terminado_settings = {\"shell_command\"\:[\"\/bin\/bash\"]}/' /home/jovyan/.jupyter/jupyter_notebook_config.py
RUN sed -i -e 's/# c.NotebookApp.terminado_settings = {}/c.NotebookApp.terminado_settings = {\"shell_command\"\:[\"\/bin\/bash\"]}/' /home/jovyan/.jupyter/jupyter_notebook_config.py

# Set the jupyterlab user-settings
RUN /bin/bash -cl 'mkdir -p /home/jovyan/.jupyter/lab/user-settings/@jupyterlab/extensionmanager-extension && \
Expand Down
8 changes: 4 additions & 4 deletions resen-core/resources/helpers/setup_basemap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#######################################################################################

# git clone --depth 0 https://github.com/matplotlib/basemap.git # VERY SLOW
wget https://github.com/matplotlib/basemap/archive/v1.2.0rel.tar.gz
tar -zxf v1.2.0rel.tar.gz
cd basemap-1.2.0rel
wget https://github.com/matplotlib/basemap/archive/v1.2.2rel.tar.gz
tar -zxf v1.2.2rel.tar.gz
cd basemap-1.2.2rel

source ${HOME}/envs/py38/bin/activate
pip install .
Expand All @@ -19,5 +19,5 @@ deactivate

# cleanup
cd ..
rm -rf basemap-1.2.0rel v1.2.0rel.tar.gz
rm -rf basemap-1.2.2rel v1.2.2rel.tar.gz
rm ${HOME}/.wget-hsts

0 comments on commit b70e14f

Please sign in to comment.