[openstreetmap/openstreetmap-website] [WIP] Add docker support (#2272)

Fazle Rabbi notifications at github.com
Sat Jun 22 10:18:05 UTC 2019


ok I have some good news. I was able solve the deployment problem mentioned on my previous comment. I forgot to change the volume mount point when I moved the `docker-compose.yml` to docker directory from root directory and docker was unable to find the files necessary. Silly mistake ruined my weekend :no_mouth:. But unfortunately haven't made any progress with `rake test:db` error yet.

>There's a few commandline things which are pretty important to having a useful development environment, such as:

>Running the test suite
>Running rake commands (e.g. for database migrations)
>Running the console
>Connecting to the database with psql

>I'd like to make sure all of these things are possible in the Dockerized development setup, since at the moment I only see mention of running the webserver. With Vagrant, for example, you can just vagrant ssh into the virtual machine and do all of these things.

@gravitystorm  they all are possible but for some reason I have setback regarding the `rake test:db` command. Might have something to do with the UNIX socket vs Docker tpc connection as you have mentioned in your comment. And yes you can also use `bash` on all of them.

> If they are possible already (great!) then it would be worthwhile documenting how that works, since it's not obvious to me at least!

I just went through the old PR (#1290) and found that @paulsturgess made a nice [doc](https://github.com/paulsturgess/openstreetmap-website/blob/b1f90c5219f3d103e9d9d9942230861de3203327/DOCKER.md) for docker usage. Will try to re-use/re-purpose that and push it asap. Cheers!


-- 
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/2272#issuecomment-504652406
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20190622/de3d55f1/attachment-0001.html>


More information about the rails-dev mailing list