Skip to content

Commit 5d9e5a4

Browse files
Build plperl, plpython and pltcl in alpine images
1 parent a11e908 commit 5d9e5a4

File tree

7 files changed

+63
-63
lines changed

7 files changed

+63
-63
lines changed

10/alpine/Dockerfile

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

11/alpine/Dockerfile

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

12/alpine/Dockerfile

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

13/alpine/Dockerfile

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

14/alpine/Dockerfile

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

9.6/alpine/Dockerfile

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile-alpine.template

+9-9
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,9 @@ RUN set -eux; \
5555
perl-utils \
5656
# configure: error: Perl module IPC::Run is required to run TAP tests
5757
perl-ipc-run \
58-
# perl-dev \
59-
# python-dev \
60-
# python3-dev \
61-
# tcl-dev \
58+
perl-dev \
59+
python3-dev \
60+
tcl-dev \
6261
util-linux-dev \
6362
zlib-dev \
6463
{{ if .major >= 10 then ( -}}
@@ -100,14 +99,12 @@ RUN set -eux; \
10099
--prefix=/usr/local \
101100
--with-includes=/usr/local/include \
102101
--with-libraries=/usr/local/lib \
103-
\
104-
# these make our image abnormally large (at least 100MB larger), which seems uncouth for an "Alpine" (ie, "small") variant :)
105102
# --with-krb5 \
106103
# --with-gssapi \
107104
# --with-ldap \
108-
# --with-tcl \
109-
# --with-perl \
110-
# --with-python \
105+
--with-tcl \
106+
--with-perl \
107+
--with-python \
111108
# --with-pam \
112109
--with-openssl \
113110
--with-libxml \
@@ -131,6 +128,9 @@ RUN set -eux; \
131128
| tr ',' '\n' \
132129
| sort -u \
133130
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
131+
# Remove plperl, plpython and pltcl dependencies by default to save image size
132+
# To use the pl extensions, those have to be installed in a derived image
133+
| grep -v -e perl -e python -e tcl \
134134
)"; \
135135
apk add --no-cache --virtual .postgresql-rundeps \
136136
$runDeps \

0 commit comments

Comments
 (0)