Skip to content

Commit 1a2aae8

Browse files
committed
chore: bring Dockerfile-17 up to date
1 parent d9dbc53 commit 1a2aae8

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

Diff for: Dockerfile-17

+17-12
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ ARG rum_release=1.3.13
2424
ARG pg_hashids_release=cd0e1b31d52b394a0df64079406a14a4f7387cd6
2525
ARG libsodium_release=1.0.18
2626
ARG pgsodium_release=3.1.6
27-
ARG pg_graphql_release=1.5.1
27+
ARG pg_graphql_release=1.5.11
2828
ARG pg_stat_monitor_release=1.1.1
2929
ARG pg_jsonschema_release=0.1.4
3030
ARG pg_repack_release=1.4.8
3131
ARG vault_release=0.2.8
3232
ARG groonga_release=12.0.8
3333
ARG pgroonga_release=2.4.0
34-
ARG wrappers_release=0.3.0
34+
ARG wrappers_release=0.4.5
3535
ARG hypopg_release=1.3.1
3636
ARG pgvector_release=0.4.0
3737
ARG pg_tle_release=1.3.2
3838
ARG index_advisor_release=0.2.0
3939
ARG supautils_release=2.2.0
40-
ARG wal_g_release=2.0.1
40+
ARG wal_g_release=3.0.5
4141

4242
FROM ubuntu:focal as base
4343

@@ -66,9 +66,9 @@ COPY . /nixpg
6666

6767
WORKDIR /nixpg
6868

69-
RUN nix profile install .#psql_orioledb-17/bin
70-
69+
RUN nix profile install .#psql_17/bin
7170

71+
RUN nix store gc
7272

7373
WORKDIR /
7474

@@ -118,14 +118,15 @@ ENV PGDATA=/var/lib/postgresql/data
118118
####################
119119
FROM base as walg
120120
ARG wal_g_release
121-
# ADD "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-20.04-${TARGETARCH}.tar.gz" /tmp/wal-g.tar.gz
122-
RUN arch=$([ "$TARGETARCH" = "arm64" ] && echo "aarch64" || echo "$TARGETARCH") && \
123-
apt-get update && apt-get install -y --no-install-recommends curl && \
124-
curl -kL "https://github.com/wal-g/wal-g/releases/download/v${wal_g_release}/wal-g-pg-ubuntu-20.04-aarch64.tar.gz" -o /tmp/wal-g.tar.gz && \
125-
tar -xvf /tmp/wal-g.tar.gz -C /tmp && \
126-
rm -rf /tmp/wal-g.tar.gz && \
127-
mv /tmp/wal-g-pg-ubuntu*20.04-aarch64 /tmp/wal-g
128121

122+
WORKDIR /nixpg
123+
124+
RUN nix profile install .#wal-g-3 && \
125+
ln -s /nix/var/nix/profiles/default/bin/wal-g-3 /tmp/wal-g
126+
127+
RUN nix store gc
128+
129+
WORKDIR /
129130
# ####################
130131
# # Download gosu for easy step-down from root
131132
# ####################
@@ -178,6 +179,7 @@ RUN sed -i \
178179
echo "cron.database_name = 'postgres'" >> /etc/postgresql/postgresql.conf && \
179180
#echo "pljava.libjvm_location = '/usr/lib/jvm/java-11-openjdk-${TARGETARCH}/lib/server/libjvm.so'" >> /etc/postgresql/postgresql.conf && \
180181
echo "pgsodium.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
182+
echo "vault.getkey_script= '/usr/lib/postgresql/bin/pgsodium_getkey.sh'" >> /etc/postgresql/postgresql.conf && \
181183
echo 'auto_explain.log_min_duration = 10s' >> /etc/postgresql/postgresql.conf && \
182184
usermod -aG postgres wal-g && \
183185
mkdir -p /etc/postgresql-custom && \
@@ -226,4 +228,7 @@ ENV LC_ALL en_US.UTF-8
226228
ENV LC_CTYPE=C.UTF-8
227229
ENV LC_COLLATE=C.UTF-8
228230
ENV LOCALE_ARCHIVE /usr/lib/locale/locale-archive
231+
RUN mkdir -p /usr/share/postgresql/extension/ && \
232+
ln -s /usr/lib/postgresql/bin/pgsodium_getkey.sh /usr/share/postgresql/extension/pgsodium_getkey && \
233+
chmod +x /usr/lib/postgresql/bin/pgsodium_getkey.sh
229234
CMD ["postgres", "-D", "/etc/postgresql"]

0 commit comments

Comments
 (0)