Skip to content

Commit

Permalink
dockerfile: install postgresql-client-16
Browse files Browse the repository at this point in the history
- Needed for pg_dump compatibility with PostgreSQL 16 server
- Dropped condition for the binary as we no longer support armv7 which had the issue
  • Loading branch information
nijel committed Oct 9, 2023
1 parent 007ff1b commit 91d6d0c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ COPY requirements.txt Gemfile patches /app/src/
# hadolint ignore=DL3008,DL3013,SC2046,DL3003
RUN \
export DEBIAN_FRONTEND=noninteractive \
&& echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& curl -L https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
nginx-light \
Expand Down Expand Up @@ -100,15 +102,8 @@ RUN \
patch \
unzip \
xz-utils \
postgresql-client-16 \
&& c_rehash \
&& echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& curl -L https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
&& if apt-cache show postgresql-client-15 > /dev/null 2>&1 ; then \
apt-get install --no-install-recommends -y postgresql-client-15 ; \
else \
apt-get install --no-install-recommends -y postgresql-client ; \
fi \
&& cd /app/src/ \
&& bundle install \
&& bundle clean --force \
Expand Down

0 comments on commit 91d6d0c

Please sign in to comment.