forked from seismo-live/seismo_live
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docker setup: move the env variable setup to "start"
- Loading branch information
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
#!/bin/bash | ||
# Things to run once after the docker base image is pulled | ||
|
||
# update notebooks | ||
cd /home/jovyan/seismo_live | ||
cd $HOME/seismo_live | ||
git fetch origin | ||
git reset --hard origin/master | ||
|
||
# XXX ugly hack to try and work around proj env issues | ||
# XXX https://github.com/conda-forge/basemap-feedstock/issues/30 | ||
export PROJ_LIB=/opt/conda/share/proj/ | ||
# only expose notebooks in the jupyter home dir | ||
rm -rf $HOME/work | ||
mv $HOME/seismo_live/notebooks/* $HOME/ | ||
rm -rf $HOME/seismo_live |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# -*- coding: utf-8 -*- | ||
#!/bin/bash | ||
# Code that runs before the user sessions starts | ||
# E.g. set env variables here | ||
# See: https://mybinder.readthedocs.io/en/latest/config_files.html#id15 | ||
|
||
# XXX ugly hack to try and work around proj env issues | ||
# XXX https://github.com/conda-forge/basemap-feedstock/issues/30 | ||
export PROJ_LIB=/opt/conda/share/proj/ | ||
|
||
# This has to be here to start the common binder startup at the end | ||
exec "$@" |