dnephin / dobi

A build automation tool for Docker applications
https://dnephin.github.io/dobi/
Apache License 2.0
311 stars 36 forks source link

[User stories] Sharing a project built on Dobi (openstreetmap carto) #121

Open OnkelTem opened 6 years ago

OnkelTem commented 6 years ago

You folks can see the result of my efforts here: https://github.com/OnkelTem/osmcarto-docker

@dnephin Daniel, many thanks to you personally: for the great tool Dobi and for your time spent on giving answers to my claims and naggings. Sure, your feedback on this my venture is welcome but not required. I'd personally prefer you to spare some time instead on further development of Dobi! And #45 is my favorite ;-)

d3netxer commented 6 years ago

I would like to understand dobi and osmcarto-docker better.

At first I was not able to install osmcarto-docker when I ran: dobi init

After I took out the -u ${APP UID} flag in the useradd line in all of the Dockerfiles of the base images it was able to install completely. I'm not sure what purpose the -u ${APP UID} flag was, or if it was harmful to get rid of it.

Now I would like to be able to create some MBTiles. In the base_kosmtik Dockerfile file I added a line to install the kosmtik-mbtiles-export plug-in.

Is there a way I can run the command to create mbtiles in kosmtik? The command would look something like this:

node index.js export ~/openstreetmap-carto/project.mml --format mbtiles --output ~/repos/output.mbtiles --minZoom 3 --maxZoom 16 --bbox 32.540158,0.284292,32.623929,0.341969

or this

kosmtik export ~/openstreetmap-carto/project.mml --format mbtiles --output ~/repos/output.mbtiles --minZoom 3 --maxZoom 16 --bbox 32.540158,0.284292,32.623929,0.341969

I'm new to docker as well, so it is a steep learning curve on how to do something as simple as this, when I am used to running a command like this in the terminal.