Skip to content

Commit 022a37d

Browse files
committed
feat(database): upgrade to pg14
1 parent 6c4cfe9 commit 022a37d

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN apt-get update \
1414
&& make pg_install
1515

1616

17-
FROM docker.io/library/postgres:13-buster
17+
FROM docker.io/library/postgres:14-bullseye
1818

1919
COPY rootfs /
2020
COPY --from=mc /usr/bin/mc /bin/mc
@@ -23,7 +23,8 @@ COPY --from=builder /usr/local/bin/wal-g /bin/wal-g
2323
ENV PGDATA $PGDATA/$PG_MAJOR
2424
ENV WALG_ENVDIR /etc/wal-g.d/env
2525

26-
RUN mkdir -p $WALG_ENVDIR \
26+
RUN sed -i -r 's/#huge_pages.*?/huge_pages = try/g' /usr/share/postgresql/postgresql.conf.sample \
27+
&& mkdir -p $WALG_ENVDIR \
2728
&& apt-get update \
2829
&& apt-get install -y --no-install-recommends \
2930
jq \

charts/database/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ timeout: "1200"
99
# If left empty they will be generated using randAlphaNum
1010
username: ""
1111
password: ""
12-
controllerDatabaseName: "drycc_controller"
1312
passportDatabaseName: "drycc_passport"
13+
controllerDatabaseName: "drycc_controller"

rootfs/docker-entrypoint-initdb.d/003_restore_from_backup.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ lc_monetary = 'C' # locale for monetary formatting
2121
lc_numeric = 'C' # locale for number formatting
2222
lc_time = 'C' # locale for time formatting
2323
default_text_search_config = 'pg_catalog.english'
24+
huge_pages = try
2425
wal_level = archive
2526
archive_mode = on
2627
archive_command = 'envdir "${WALG_ENVDIR}" wal-g wal-push %p'
@@ -48,6 +49,7 @@ EOF
4849
-w start
4950
else
5051
cat << EOF >> "$PGDATA/postgresql.conf"
52+
huge_pages = try
5153
wal_level = archive
5254
archive_mode = on
5355
archive_command = 'envdir "${WALG_ENVDIR}" wal-g wal-push %p'

0 commit comments

Comments
 (0)