Skip to content

Latest commit

 

History

History
54 lines (26 loc) · 1.79 KB

README.md

File metadata and controls

54 lines (26 loc) · 1.79 KB

GeospatialPyContainer

This repo is a basic Docker container with geospatial capapbilities for Python. More specifically it

  • install Python 3.12
  • installs key geospatial packages: rasterio, xarray, rioxarray

How to set up this container

If going the dev container route, you will need the following:

  • Docker (cli, but optionally the desktop app)
  • VSCode, and the Dev Containers extension

After cloning the repo, you will need to open it in VSCode ( code . in the command line) and run the following command:

  • Cmd + Shift + P -> Dev Containers: Reopen in Container

or

  • Cmd + Shift + P -> Dev Containers: Rebuilt Container

How to start a Jupter Notebook

  • Activate the correct Python environment conda activate GeospatialPyContainer
  • Start notebook with jupyter notebook --allow-root --NotebookApp.token=''

Folder structure of the Docker container

├── .devcontainer 📁

│        └── devcontainer.json📄 mounts external folders, ...

│        └── Dockerfile📄 mounts external folders, ...

│        └── python_environment.yaml📄 *handles

│       └── scripts 📁 scripts to be run during built

│           └── handle_startup_sh📄 ?

│           └── *install_git_and_ssh.sh📄 handles, git, ssh, and executables

installation of python and python packages*

├── simulation 📁 files for simulations within container

│       └── *.py📄 Runs python files. Conda environment of yaml file needs to be activated and script run in terminal with conda