-
Notifications
You must be signed in to change notification settings - Fork 78
/
Dockerfile.spilo
58 lines (49 loc) · 1.46 KB
/
Dockerfile.spilo
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#syntax=docker/dockerfile:1
FROM spilo_base
ARG PYTHON_VERSION
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends software-properties-common; \
# make the latest python available
add-apt-repository ppa:deadsnakes/ppa; \
apt-get update; \
apt-get install -y --no-install-recommends \
# http deps
ca-certificates \
libcurl4-gnutls-dev \
# mysql deps
default-libmysqlclient-dev \
# multicorn deps
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
# s3 deps
lsb-release \
wget \
; \
rm -rf /var/lib/apt/lists/*
# columnar ext
COPY --from=columnar_13 /pg_ext /
COPY --from=columnar_14 /pg_ext /
COPY files/spilo/postgres-appliance/scripts /scripts/
# mysql ext
COPY --from=mysql_13 /pg_ext /
COPY --from=mysql_14 /pg_ext /
# http ext
#COPY --from=http_13 /pg_ext /
#COPY --from=http_14 /pg_ext /
# multicorn ext
COPY --from=multicorn_13 /pg_ext /
COPY --from=multicorn_14 /pg_ext /
COPY --from=multicorn_14 /python-dist-packages /usr/local/lib/python${PYTHON_VERSION}/dist-packages
# s3 ext
COPY --from=s3_13 /pg_ext /
COPY --from=s3_14 /pg_ext /
COPY third-party/s3/scripts /tmp
RUN set -eux; \
/tmp/install-arrow; \
rm -f /tmp/install
COPY --from=s3_14 /lib/* /s3_lib/
RUN cp -r /s3_lib/* /usr/lib/$(uname -m)-linux-gnu/
ARG POSTGRES_BASE_VERSION
# Default envs
ENV PGVERSION=${POSTGRES_BASE_VERSION} SPILO_PROVIDER=local PGUSER_SUPERUSER=postgres PGPASSWORD_SUPERUSER=hydra