Last active
June 23, 2022 11:41
-
-
Save malkab/ebce4d1e780de0cc367b8300b4b835cf to your computer and use it in GitHub Desktop.
GRASS Docker Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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