Skip to content

Commit

Permalink
Merge pull request #2 from geokrety/postgres-16-bullseye
Browse files Browse the repository at this point in the history
Postgres 16 bullseye
  • Loading branch information
kumy authored Jul 13, 2024
2 parents 2bf9741 + 9acc6b3 commit 814a96a
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,23 @@
FROM postgres:14-bullseye
FROM postgres:16-bullseye

COPY pgdg.preferences /etc/apt/preferences.d/pgdg

RUN apt-get update \
&& apt-get install -y --allow-downgrades \
postgresql-14-postgis-3 \
postgresql-14-postgis-3-scripts \
postgresql-16-postgis-3 \
postgresql-16-postgis-3-scripts \
postgis \
postgresql-14-pgtap \
postgresql-16-pgtap \
make \
gcc \
postgresql-server-dev-14 \
postgresql-server-dev-16 \
curl \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/* \
\
&& mkdir /tmp/pgxn \
\
&& cd /tmp/pgxn \
&& curl -L https://github.com/tvondra/quantile/archive/244b6285e2c6a8d73bc555d7103200985e371bfa.tar.gz|tar xzf - \
&& cd /tmp/pgxn/quantile-244b6285e2c6a8d73bc555d7103200985e371bfa \
&& make install \
\
&& cd /tmp/pgxn \
&& curl -L https://github.com/omniti-labs/pg_amqp/archive/240d477d40c5e7a579b931c98eb29cef4edda164.tar.gz|tar xzf - \
&& cd /tmp/pgxn/pg_amqp-240d477d40c5e7a579b931c98eb29cef4edda164 \
&& make install \
Expand All @@ -32,7 +27,7 @@ RUN apt-get update \
&& apt-get remove --purge -y \
make \
gcc \
postgresql-server-dev-14 \
postgresql-server-dev-16 \
curl

## Would have been nice to use pgnx to install `quantile` extension but required
Expand Down

0 comments on commit 814a96a

Please sign in to comment.