Skip to content

Commit

Permalink
build: add db init script for sfcgal PostGIS functions
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Dec 18, 2024
1 parent db5e47b commit fc71e71
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ services:
- POSTGRES_USER=fmtm
- POSTGRES_PASSWORD=dummycipassword
- POSTGRES_DB=splitter
volumes:
- ./scripts/20_enable_sfcgal.sql:/docker-entrypoint-initdb.d/20_enable_sfcgal.sql:ro
ports:
- "5439:5432"
networks:
Expand Down
1 change: 1 addition & 0 deletions scripts/20_enable_sfcgal.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE EXTENSION IF NOT EXISTS postgis_sfcgal WITH SCHEMA public;
6 changes: 6 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# FMTM-Splitter Scripts

- This dir is for initialisation scripts of sorts, generally regarding
deployment, database, general devops concerns.
- This is not a place for Python scripts. Those can be committed to the
`contrib` dir.

0 comments on commit fc71e71

Please sign in to comment.