@@ -30,7 +30,7 @@ ARG pg_repack_release=1.4.8
3030ARG vault_release=0.2.8
3131ARG groonga_release=12.0.8
3232ARG pgroonga_release=2.4.0
33- ARG wrappers_release=0.5.6
33+ ARG wrappers_release=0.5.7
3434ARG hypopg_release=1.3.1
3535ARG pgvector_release=0.4.0
3636ARG pg_tle_release=1.3.2
@@ -159,18 +159,6 @@ RUN bash -c 'source /usr/local/bin/apt-update-fallback.sh && apt_update_with_fal
159159
160160ENV PGDATA=/var/lib/postgresql/data
161161
162- ####################
163- # setup-wal-g.yml
164- ####################
165- FROM base as walg
166- ARG wal_g_release
167- WORKDIR /nixpg
168-
169- RUN nix profile install .#wal-g-3 && \
170- ln -s /nix/var/nix/profiles/default/bin/wal-g-3 /tmp/wal-g
171-
172- RUN nix store gc
173-
174162WORKDIR /
175163####################
176164# setup-groonga
@@ -215,7 +203,6 @@ RUN gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys $GOSU_GPG_KEY &&
215203FROM gosu as production
216204RUN id postgres || (echo "postgres user does not exist" && exit 1)
217205# # Setup extensions
218- COPY --from=walg /tmp/wal-g /usr/local/bin/
219206COPY --from=groonga /tmp/groonga-plugins/plugins /usr/lib/groonga/plugins
220207
221208# # Initialise configs
@@ -237,11 +224,8 @@ RUN sed -i \
237224 -e "s|#session_preload_libraries = ''|session_preload_libraries = 'supautils'|g" \
238225 -e "s|#include = '/etc/postgresql-custom/supautils.conf'|include = '/etc/postgresql-custom/supautils.conf'|g" \
239226 -e "s|#include = '/etc/postgresql-custom/wal-g.conf'|include = '/etc/postgresql-custom/wal-g.conf'|g" /etc/postgresql/postgresql.conf && \
240- echo "cron.database_name = 'postgres'" >> /etc/postgresql/postgresql.conf && \
241- #echo "pljava.libjvm_location = '/usr/lib/jvm/java-11-openjdk-${TARGETARCH}/lib/server/libjvm.so'" >> /etc/postgresql/postgresql.conf && \
242227 echo "pgsodium.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
243228 echo "vault.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
244- echo 'auto_explain.log_min_duration = 10s' >> /etc/postgresql/postgresql.conf && \
245229 usermod -aG postgres wal-g && \
246230 mkdir -p /etc/postgresql-custom/conf.d && \
247231 chown -R postgres:postgres /etc/postgresql-custom
0 commit comments