Python for Earth Scientists
Interactive python notebooks for the 'Introduction to Python' class at the University of Melbourne School of Earth Sciences.
Prof Louis Moresi
- (c) University of Melbourne, 2015
Mapping - An introduction to map making with the Cartopy package, including scalar and vector plots, using online map/image tools, and obtaining data with obspy to plot seismicity.
The sync doesn't work that well with automated builds but this is approximately what the Dockerfile looks like. See Github for details
FROM lmoresi/unimelb-debian-base:v1.01 ## ============================================================ ## base file has all the labour intensive stuff in it. ## ============================================================ # Create a non-privileged user to run the notebooks RUN useradd --create-home --home-dir /home/serpentine --shell /bin/bash --user-group serpentine RUN mkdir /uom_course && chown serpentine:serpentine /uom_course # skip if you need to change things in the live container USER serpentine ENV HOME=/uom_course ENV SHELL=/bin/bash ENV USER=serpentine WORKDIR $HOME RUN git clone https://github.com/lmoresi/UoM-python-for-earth-science-class.git /uom_course/ # Watch the cache ! RUN ls /uom_course/Notebooks # Make a scratch directory available to connect to the host machine. # Make the Notebook Resources directory available for extracting outputs etc # Should not be needed as I put a README there in the repo # RUN mkdir -p /uom_course/Notebooks/external VOLUME /uom_course/Notebooks/external VOLUME /uom_course/Notebooks/Mapping/Resources # Launch the notebook server from the Notebook directory WORKDIR /uom_course/Notebooks EXPOSE 8888 ENTRYPOINT ["/usr/local/bin/tini", "--"] CMD jupyter notebook --ip=0.0.0.0 --no-browser