Skip to content

SEtting up a Docker container with basic geospatial processing capabilities to use in geospatial data science projects

Notifications You must be signed in to change notification settings

SchmidtDSE/GeospatialPyContainer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SEtting up a Docker container with basic geospatial processing capabilities to use in geospatial data science projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 53.1%
  • Shell 22.3%
  • Jupyter Notebook 18.0%
  • Python 6.6%