Skip to content

Commit

Permalink
Fix postgis init script ENVs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Wendland committed Jul 24, 2024
1 parent e872f72 commit 18f9a0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aws/deployai/marketplace/postgis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ postgresql:
adminPasswordKey: postgres-root-password
userPasswordKey: postgres-password

# Current workaround in OS for permissiones error:
# > oc adm policy add-scc-to-user privileged -z default -ndeployai
rbac:
create: true
rules:
Expand All @@ -29,5 +31,5 @@ postgresql:
initdb:
scripts:
enable.sh: |
psql postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5432 -c "CREATE EXTENSION postgis;"
psql postgresql://postgres:${POSTGRES_PASSWORD}@localhost:5432 -c "CREATE DATABASE ngb;"
psql postgresql://postgres:${POSTGRES_POSTGRES_PASSWORD}@localhost:5432 -c "CREATE EXTENSION postgis;"
psql postgresql://postgres:${POSTGRES_POSTGRES_PASSWORD}@localhost:5432 -c "CREATE DATABASE ngb;"

0 comments on commit 18f9a0b

Please sign in to comment.