-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcommands.sh
More file actions
18 lines (13 loc) · 862 Bytes
/
commands.sh
File metadata and controls
18 lines (13 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# in the same folder as Dockerfile
docker build -t "gdal-python" .
# then run it with mounting the data folder
docker run -v `pwd`:/comp_home -it gdal-python /bin/bash
# run jupyter notebook
docker run -v `pwd`:/comp_home -p 8888:8888 --rm -it gdal-python sh -c "ipython notebook --ip=0.0.0.0 --no-browser"
# with anaconda
# this sort of worked until I wanted tifffile
docker run -v `pwd`:/comp_home -p 8888:8888 --rm -it gdal-python /bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && /opt/conda/bin/jupyter notebook --ip=0.0.0.0 --no-browser"
# with anaconda and install tifffile
# this didn't really work the way I wanted
docker run -v `pwd`:/comp_home -p 8888:8888 --rm -it gdal-python \
/bin/bash -c "/opt/conda/bin/conda install jupyter -y --quiet && pip install tifffile && /opt/conda/bin/jupyter notebook --ip=0.0.0.0 --no-browser"