@@ -13,6 +13,8 @@ ENV LANG=en_US.utf8 \
13
13
LC_ALL=en_US.utf8 \
14
14
PGDATA=/var/lib/postgresql/data
15
15
16
+ COPY . /
17
+
16
18
RUN apk update \
17
19
&& apk add --no-cache bash ca-certificates cyrus-sasl icu-libs libedit libffi libintl llvm11 openssl perl python3 tzdata \
18
20
&& apk add --no-cache --virtual devdeps asciidoc autoconf automake bison bzip2 clang cmake coreutils curl cyrus-sasl-dev expat-dev flex curl gcc g++ gdbm gettext-dev git icu-dev libc-dev libedit-dev libffi-dev libtool libxml2-dev libxslt-dev linux-headers llvm11-dev make musl-dev openssl-dev patch perl-dev python3-dev unzip util-linux-dev xmlto zlib-dev \
@@ -35,12 +37,11 @@ RUN apk update \
35
37
&& PYTHON=/usr/bin/python3 ./configure --disable-rpath --prefix=/usr --mandir=/usr/share/man --with-includes=/usr/local/include --with-libraries=/usr/local/lib --with-icu --with-llvm --with-openssl --with-python --with-system-tzdata=/usr/share/zoneinfo --with-uuid=ossp \
36
38
&& make -j "$(getconf _NPROCESSORS_ONLN)" world && make install \
37
39
&& make -j "$(getconf _NPROCESSORS_ONLN)" -C contrib install \
40
+ && pip3 --no-color --no-cache-dir -qq install -r /requirements.txt \
38
41
&& cd /tmp \
39
42
&& perl -MCPAN -e 'my $c = "CPAN::HandleConfig"; $c->load(doit => 1, autoconfig => 1); $c->edit(prerequisites_policy => "follow"); $c->edit(build_requires_install_policy => "yes"); $c->commit' \
40
43
&& PERL_MM_USE_DEFAULT=1 cpan -T TAP::Harness::JUnit \
41
44
&& PERL_MM_USE_DEFAULT=1 cpan -T TAP::Parser::SourceHandler::pgTAP \
42
- && pip3 --no-color --no-cache-dir -qq install pgxnclient \
43
- && pip3 --no-color --no-cache-dir -qq install pglifecycle==${PGLIFECYCLE_VERSION} \
44
45
&& pgxn install pgtap==${PGTAP_VERSION} \
45
46
&& git clone https://github.com/okbob/plpgsql_check.git -b v${PLPGSQL_CHECK_VERSION} \
46
47
&& cd plpgsql_check \
@@ -67,13 +68,11 @@ RUN apk update \
67
68
/usr/local/include/* \
68
69
/usr/local/share/doc \
69
70
/usr/local/share/man \
70
- /usr/lib/python3.8 /__pycache__/* \
71
- /usr/lib/python3.8 /*/__pycache__/* \
71
+ /usr/lib/python3.* /__pycache__/* \
72
+ /usr/lib/python3.* /*/__pycache__/* \
72
73
/tmp/* \
73
74
&& find /usr/local -name '*.a' -delete
74
75
75
- COPY docker-entrypoint.sh /
76
-
77
76
VOLUME ["/docker-entrypoint-initdb.d" ]
78
77
EXPOSE 5432
79
78
HEALTHCHECK CMD pg_isready
0 commit comments