Closed hmeine closed 5 years ago
I think I understand better now: osm-bright needs to be inside the docker. I have updated the setup (see https://github.com/hmeine/tilemill_docker if you're interested) and it works much better now.
Hans, thanks for the follow-up with your issue, glad you figured it out. I know many people are interested in a docker solution, so this is great.
On Sep 4, 2019, at 8:58 AM, Hans Meine notifications@github.com wrote:
I think I understand better now: osm-bright needs to be inside the docker. I have updated the setup (see https://github.com/hmeine/tilemill_docker https://github.com/hmeine/tilemill_docker if you're interested) and it works much better now.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tilemill-project/tilemill/issues/2727?email_source=notifications&email_token=AAA7ORG5ODRZR2SKG4FLF53QH7LJDA5CNFSM4IS74EYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD54CFWI#issuecomment-527966937, or mute the thread https://github.com/notifications/unsubscribe-auth/AAA7ORBGSVQMRYJ65PHBS63QH7LJDANCNFSM4IS74EYA.
Describe the bug I want to create a poster map of my hometown. I am very new to tilemill, postgis etc., but I have spent many hours to inform myself as far as possible and to get to this setup, following the OSM Bright Ubuntu quickstart document. I have tried this multiple times, and finally think I understand (at a coarse level) what all the different components (should) do.
node:8.11
base image.~/Documents/MapBox
was mounted into the tilemill docker container). I got no error from this step either.Tilemill Output: I also get an error from tilemill:
[tilemill] Client Error: TypeError: h is undefined [tilemill] at http://hostname:20009/assets/tilemill/js/vendor.js:4153
If I understand correctly, choosing "Project" should make tilemill fetch data from my postgis, right? (Where does the name "Project" come from?) How can I debug why this fails?
Environment: (Note: We are not setup to test on Linux or Windows so help may be slower on those OSs)
To Reproduce Steps to reproduce the behavior:
docker run --name "postgis" -p 5432:5432 -v pg_data:/var/lib/postgresql --rm -t kartoza/postgis
imposm -U docker -d gis -m ../mapbox-osm-bright-f1c8780/imposm-mapping.py --read --write --optimize --deploy-production-tables my-downloaded.osm.pbf
git clone https://github.com/tilemill-project/tilemill.git && docker build -t tilemill .
docker run --rm -t --net=host --name tilemill -v ~/Documents/MapBox:/root/Documents/MapBox tilemill
sudo chown -R $(whoami) ~/Documents/MapBox
cd ../mapbox-osm-bright-f1c8780/ && ./make.py
Expected behavior I would expect some kind of map to appear. My main problem is that I don't know how to debug this further. The only error message I see is the above "Client Error: TypeError: h is undefined".