diff --git a/examples/run-tembo-locally/Dockerfile b/examples/run-tembo-locally/Dockerfile index 103912dd5..b064be822 100644 --- a/examples/run-tembo-locally/Dockerfile +++ b/examples/run-tembo-locally/Dockerfile @@ -1,6 +1,7 @@ FROM quay.io/tembo/tembo-pg-cnpg:latest USER root + RUN chown -R postgres:postgres $PGDATA && \ chmod -R 0700 $PGDATA ENV PGDATA /var/lib/postgresql/data2 diff --git a/tembo-operator/src/stacks/templates/gis.yaml b/tembo-operator/src/stacks/templates/gis.yaml new file mode 100644 index 000000000..55aeb162a --- /dev/null +++ b/tembo-operator/src/stacks/templates/gis.yaml @@ -0,0 +1,55 @@ +name: Geospatial +description: Postgres for geospatial workloads. +image: "quay.io/tembo/standard-cnpg:15.3.0-1-1096aeb" +stack_version: 0.1.0 +compute_templates: + - cpu: 1 + memory: 4Gi + - cpu: 2 + memory: 8Gi + - cpu: 4 + memory: 16Gi + - cpu: 8 + memory: 32Gi + - cpu: 16 + memory: 32Gi +postgres_config_engine: standard +postgres_config: + - name: autovacuum_vacuum_cost_limit + value: -1 + - name: autovacuum_vacuum_scale_factor + value: 0.05 + - name: autovacuum_vacuum_insert_scale_factor + value: 0.05 + - name: autovacuum_analyze_scale_factor + value: 0.05 + - name: checkpoint_timeout + value: 10min + - name: track_activity_query_size + value: 2048 + - name: wal_compression + value: 'on' + - name: track_io_timing + value: 'on' + - name: log_min_duration_statement # https://www.postgresql.org/docs/15/runtime-config-logging.html + value: 1000 + - name: pg_stat_statements.track + value: all + - name: shared_preload_libraries + value: pg_stat_statements +trunk_installs: + - name: pg_stat_statements + version: 1.10.0 + - name: postgis + version: 3.4.0 +extensions: + - name: pg_stat_statements + locations: + - database: postgres + enabled: true + version: 1.10.0 + - name: postgis + locations: + - database: postgres + enabled: true + version: 3.4.0