[openstreetmap/openstreetmap-website] Add Docker Compose Support for Development Environment (#2409)

Michal Migurski notifications at github.com
Sun Feb 16 01:53:56 UTC 2020


I just ran through the complete process of running this Docker environment, to test the user experience of a random passerby who’d like to contribute an edit to the site. @jalessio walked me through setting up Docker-Compose, initializing a clean new database, importing data using Osmosis (from a small PBF extract), and verifying that everything worked at `localhost:3000`.

I made the smallest change I could think of: updating the header text in a way that was obviously visible (history/schmistory, etc.). Rails hot-reloaded everything, and I was able to see my change immediately:

<img width="1188" alt="Screen Shot 2020-02-15 at 5 44 50 PM" src="https://user-images.githubusercontent.com/58730/74597850-eb94f100-501a-11ea-8f2b-f49fd398cf57.png">

As a Rails novice who doesn't expect to become an expert, this has been a super useful way to understand the moving parts of the website and test potential changes. I can imagine helping a designer implement an idea here and test it out live, useful to getting new ideas into OSM.

I know that Docker configs can fall out of date over time, but as we’ve seen with https://github.com/openstreetmap/chef/pull/266 tests for this can be added to our Travis configuration and images can be published to Docker Hub where a casual developer can try them out.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-586659968
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200215/94e4e943/attachment.htm>


More information about the rails-dev mailing list