-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (32 loc) · 954 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM postgres:16-bullseye
COPY pgdg.preferences /etc/apt/preferences.d/pgdg
RUN apt-get update \
&& apt-get install -y --allow-downgrades \
postgresql-16-postgis-3 \
postgresql-16-postgis-3-scripts \
postgis \
postgresql-16-pgtap \
make \
gcc \
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/omniti-labs/pg_amqp/archive/240d477d40c5e7a579b931c98eb29cef4edda164.tar.gz|tar xzf - \
&& cd /tmp/pgxn/pg_amqp-240d477d40c5e7a579b931c98eb29cef4edda164 \
&& make install \
\
&& cd / \
&& rm -fr /tmp/pgxn \
&& apt-get remove --purge -y \
make \
gcc \
postgresql-server-dev-16 \
curl
## Would have been nice to use pgnx to install `quantile` extension but required
# version is not currently available in pgxn
# See: https://github.com/tvondra/quantile/issues/12