Created
November 6, 2021 22:26
-
-
Save blacha/286b3f75445c089d19adc921ab573ae9 to your computer and use it in GitHub Desktop.
Run GDAL in $PWD from docker
This file contains hidden or 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 | |
| CUID=$(id -u) | |
| CGID=$(id -g) | |
| # Run docker as the current user in the current diretory | |
| docker run \ | |
| --user $CUID:$CGID \ | |
| --volume $PWD:$PWD \ | |
| --workdir $PWD \ | |
| --rm \ | |
| osgeo/gdal:ubuntu-small-latest "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment