Skip to content

Instantly share code, notes, and snippets.

@malkab
Last active June 23, 2022 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malkab/ebce4d1e780de0cc367b8300b4b835cf to your computer and use it in GitHub Desktop.
Save malkab/ebce4d1e780de0cc367b8300b4b835cf to your computer and use it in GitHub Desktop.
GRASS Docker Examples
#!/bin/bash
# -----------------
#
# The GRASS Docker image is the main geo processing hub. It contains
# GDAL, GRASS, PostgreSQL for interfacing with PostGIS containers,
# Python, Node, etc.
#
# -----------------
# -----------------
#
# Run a Jupyter Lab server
#
# -----------------
docker run -ti --rm \
--user 1000:1000 \
--network host \
--name XXX \
--hostname XXX \
-v $(pwd):$(pwd) \
--workdir $(pwd) \
malkab/grass:latest -c "jupyter-lab --no-browser -y --notebook-dir=$(pwd)"
# -----------------
#
# Run an interactive session (for Node, Python, IPython, for example)
#
# -----------------
docker run -ti --rm \
--name XXX \
--hostname XXX \
--user 1000:1000 \
--workdir $(pwd) \
-v $(pwd):$(pwd) \
malkab/grass:latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment