Sign inSign up

letompouce/prettymaps

By letompouce

•Updated almost 5 years ago

Docker image for marceloprates/prettymaps

Image
0

391

letompouce/prettymaps repository overview

⁠prettymaps

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.

⁠Usage

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

⁠Cache

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

⁠curl|sh in a container world

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'

Tag summary

Content type

Image

Digest

Size

363.7 MB

Last updated

almost 5 years ago

docker pull letompouce/prettymaps