Closed haroldship closed 8 years ago
it looks like the build process for osm2pgsql
changed w/ this commit: https://github.com/openstreetmap/osm2pgsql/commit/b0ef2692ec33dc1a9cf391027aec16adf6a175fa#diff-04c6e90faac2675aa89e2176d2eec7d8
to resolve the issue, you can either update your Dockerfile
to
osm2pgsql
@ a commit prior to that oneosm2pgsql
's current steps:
mkdir build && cd build && cmake .. && ./configure && make && make install'
Thanks that worked for the build. However, when I try to import I get the following error:
Importing /data/import.osm into his 800 osm2pgsql SVN version 0.89.0-dev (64 bit id space)
Osm2pgsql failed due to ERROR: Couldn't open style file './default.style': No such file or directory ^C*\ Shutting down /usr/local/sbin/run (PID 95)...
Osm2pgsql failed due to ERROR: Couldn't open style file './default.style': No such file or directory ^C*\ Shutting down /usr/local/sbin/run (PID 95)...
That looks like it's related to openstreetmap/osm2pgsql#515: New master build needs specifying default style
You should be able to get around it by checking out a prior commit (per above) or adding the specified flag to import()
's osm2pgsql
command:
--style /usr/local/share/osm2pgsql/default.style
https://github.com/geo-data/openstreetmap-tiles-docker/blob/master/run.sh#L81
Thank you again @erikj. However, I had to make some other changes in order to get things working (they are now). Would you like the changes?
@haroldship yeah, that would be great, thanks!
and you're welcome! :)
sent a pull request
I'm pretty new to docker. I hand-built an OSM tile server and want to create a docker image, hopefully based on yours, but with some modifications.
I git-cloned and tried to build the image. I get many warnings, but ultimately the build fails on this error:
There appears to be an image in
docker images