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

mmd notifications at github.com
Tue Dec 29 21:45:34 UTC 2020


@mmd-osm commented on this pull request.



> @@ -0,0 +1,7 @@
+FROM postgres:11
+
+# Add db init script to install OSM-specific Postgres functions/extensions.
+ADD docker/postgres/openstreetmap-postgres-init.sh /docker-entrypoint-initdb.d/
+
+# Custom database functions are in a SQL file.
+ADD db/functions/functions.sql /usr/local/sbin/osm-db-functions.sql

Ah, yes, right, the script need to go to another container. Assumption confirmed, it was the /changes endpoint. I really want to get rid of this code, as it's outdated and not used by anyone except for some single unknown user. (-> re-opened #2486). Once this is done, we don't need the sql script anymore.

```
 Failure:
Api::ChangesControllerTest#test_changes_hours_valid [/app/test/controllers/api/changes_controller_test.rb:91]:
Expected response to be a <2XX: success>, but was a <500: Internal Server Error>
Response body: ActiveRecord::StatementInvalid: PG::UndefinedFunction: ERROR:  function maptile_for_point(integer, integer, integer) does not exist
LINE 1: SELECT COUNT(*) AS count_all, maptile_for_point(latitude, lo...
```



-- 
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#discussion_r549860375
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20201229/0cc447ff/attachment.htm>


More information about the rails-dev mailing list