Docker image for marceloprates/prettymaps
377
A Docker image for marceloprates/prettymaps.
A minimal Python library to draw customized maps from OpenStreetMap created using the osmnx, matplotlib, shapely and vsketch libraries.
This image is mostly a packaging convenience:
the complete prettymaps stack in a single 1.2Gb bundle,
ready to shoot.
The WORKDIR is /src/.
You may want to bind-mount your python code there:
docker run --rm -v $(pwd):/src letompouce/prettymaps
Then, in the container, run your code:
python somecode.py
You may want to use a globally shared cache folder,
so it is used wherever you run prettymaps from:
docker run --rm \
-v $(pwd):/src \
-v ${$XDG_CACHE_HOME}/prettymaps:/src/cache \
letompouce/prettymaps \
python somecode.py
Let's put all of this in this convenient .bashrc alias:
type -t docker &>/dev/null \
&& alias prettymaps='docker run --rm \
-v $(pwd):/src \
-v $XDG_CACHE_HOME/prettymaps:/src/cache \
letompouce/prettymaps \
python'
Content type
Image
Digest
Size
363.7 MB
Last updated
almost 5 years ago
docker pull letompouce/prettymaps