Skip to content

Instantly share code, notes, and snippets.

@amis92
Created May 22, 2016 15:50
Show Gist options
  • Save amis92/a4c76f4bdd5c22080a61b599fbe8e25c to your computer and use it in GitHub Desktop.
Save amis92/a4c76f4bdd5c22080a61b599fbe8e25c to your computer and use it in GitHub Desktop.
akcjamis DB Dockerfile
FROM starefossen/pgrouting:latest
RUN apt-get update && \
apt-get install osm2pgrouting
# dane geoprzestrzenne mazowsza http://download.geofabrik.de/europe/poland/mazowieckie.html
RUN curl -s http://download.geofabrik.de/europe/poland/mazowieckie-latest.osm.bz2 \
| bzip2 -dc \
> /tmp/mazowieckie-latest.osm
RUN osm2pgrouting \
--file "/tmp/mazowieckie-latest.osm" \
--dbname "$POSTGRES_DB" \
--prefixtables osm_ \
--clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment