Skip to content

Commit

Permalink
Update local Docker setup to match current requirements
Browse files Browse the repository at this point in the history
Upgrade PostgreSQL and add pg_trgm extension to the local Docker setup.
  • Loading branch information
japauliina committed Oct 5, 2023
1 parent 077a2e5 commit b74409e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docker/postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM postgres:10
FROM postgres:14

RUN apt-get update && apt-get install --no-install-recommends -y \
postgis postgresql-10-postgis-2.5 postgresql-10-postgis-2.5-scripts
postgis postgresql-14-postgis-3 postgresql-14-postgis-3-scripts

RUN localedef -i fi_FI -c -f UTF-8 -A /usr/share/locale/locale.alias fi_FI.UTF-8

Expand Down
2 changes: 1 addition & 1 deletion docker/postgres/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
set -e

for ext in postgis hstore; do
for ext in postgis hstore pg_trgm; do
create_ext_sql="CREATE EXTENSION IF NOT EXISTS $ext"
# Add the extensions to the default db template so that any
# new db will have the extensions enabled includin test db.
Expand Down

0 comments on commit b74409e

Please sign in to comment.