mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-21 17:41:44 -08:00
fix postgres needs tmp dir
This commit is contained in:
3 files changed
+9
-4
No files matched your search
@@ -115,7 +115,6 @@ true
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
{{- define "element-io.postgres-password-updater.overrideEnv" }}
|
||||
{{- $root := .root -}}
|
||||
{{- with required "element-io.postgres.password-change-env missing context" .context -}}
|
||||
@@ -132,10 +131,12 @@ env:
|
||||
)
|
||||
)
|
||||
) }}
|
||||
- name: "PGHOST"
|
||||
value: "/var/run/postgresql"
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
|
||||
{{- define "element-io.postgres.overrideEnv" }}
|
||||
{{- $root := .root -}}
|
||||
{{- with required "element-io.postgres.overrideEnv missing context" .context -}}
|
||||
|
||||
@@ -89,6 +89,8 @@ spec:
|
||||
subPath: configure-dbs.sh
|
||||
- name: database
|
||||
mountPath: /var/lib/postgres/data
|
||||
- name: temp
|
||||
mountPath: /tmp
|
||||
- name: var-run
|
||||
mountPath: /var/run/postgresql
|
||||
- name: postgres-ess-updater
|
||||
@@ -97,7 +99,7 @@ spec:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- >
|
||||
while ! pg_isready -d postgres -U postgres -h /var/run/postgresql; do echo "Postgres not yet ready"; sleep 1; done;
|
||||
while ! pg_isready -d postgres -U postgres -h localhost; do echo "Postgres not yet ready"; sleep 1; done;
|
||||
echo "Postgres now ready, so changing password";
|
||||
/bin/sh /var/run/configure-ess-dbs.sh;
|
||||
echo "Done";
|
||||
@@ -183,6 +185,8 @@ spec:
|
||||
{{- end }}
|
||||
terminationGracePeriodSeconds: 60
|
||||
volumes:
|
||||
- emptyDir: {}
|
||||
name: temp
|
||||
- emptyDir: {}
|
||||
name: var-run
|
||||
{{- if and $.Values.initSecrets.enabled (include "element-io.init-secrets.postgres-generated-secrets" (dict "root" $)) }}
|
||||
|
||||
@@ -486,7 +486,7 @@ all_components_details = [
|
||||
content_volumes_mapping={
|
||||
"/var/lib/postgres/data": ("pgdata",),
|
||||
},
|
||||
paths_consistency_noqa=("/docker-entrypoint-initdb.d/init-ess-dbs.sh",),
|
||||
paths_consistency_noqa=("/tmp", "/docker-entrypoint-initdb.d/init-ess-dbs.sh",),
|
||||
),
|
||||
ComponentDetails(
|
||||
name="matrix-rtc",
|
||||
|
||||
Reference in new issue
Block a user