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

Andy Allan notifications at github.com
Thu Dec 17 15:49:45 UTC 2020


> The superuser setup seemed unnecessary so I skipped it.

So how do the test database(s) get created? The development database is created as part of the environment variables passed in docker-compose.yml (I assume that the container is set up to read the environment and create that database) but I can't see where either the test databases are created, nor enough permissions given to the `openstreetmap` role to do so.

> I’d appreciate some advice on the phantomjs thing, not really sure how it’s used here.

phantomjs was used by the tests, but now it's firefox-geckodriver. Both are ways of mimicking a web browser in the test suite. Without geckodriver installed, the tests won't pass. And having the tests pass is a key part of the development environment. :smile:

We either need someone to suggest how to get firefox-geckodriver installed on debian as part of the image build process, or to advise on whether switching to an Ubuntu-based image would be better.

-- 
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-747523915
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201217/4c1f148f/attachment.htm>


More information about the rails-dev mailing list