Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
ci: Attempt to fix Postgres conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Nov 14, 2023
1 parent 1acd308 commit 77904d4
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions roles/fragalysis-stack/templates/statefulset-database.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ spec:
- name: {{ all_image_preset_pullsecret_name }}
{% endif %}

init-containers:
- name: copy-conf
image: {{ busybox_image_registry }}/library/busybox:1.28.0
command:
- '/bin/sh'
- '-c'
- 'cp /etc/postgresql/postgresql.conf /var/lib/postgresql/data'
volumeMounts:
# Persistent volume for data
- mountPath: /var/lib/postgresql/data
name: database-volume
- mountPath: /etc/postgresql/postgresql.conf
name: postgres-conf
subPath: postgresql.conf
readOnly: true

containers:
- name: database
image: '{{ database_image_registry }}/{{ database_image }}:{{ database_image_tag }}'
Expand Down Expand Up @@ -102,11 +118,6 @@ spec:
subPath: 01-init.sh
readOnly: true
{% endif %}
# Postgres configuration
- mountPath: /etc/postgresql/postgresql.conf
name: postgres-conf
subPath: postgresql.conf
readOnly: true
# Persistent volume for data
- mountPath: /var/lib/postgresql/data
name: database-volume
Expand Down

0 comments on commit 77904d4

Please sign in to comment.