Skip to content

Commit 639f83f

Browse files
authored
Merge pull request #470 from dtrebbien/build-with-icu
Build with the ICU collation provider
2 parents 2cab504 + 498a243 commit 639f83f

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

10/alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ RUN set -ex \
6666
# tcl-dev \
6767
util-linux-dev \
6868
zlib-dev \
69+
icu-dev \
6970
\
7071
&& cd /usr/src/postgresql \
7172
# update "DEFAULT_PGSOCKET_DIR" to "/var/run/postgresql" (matching Debian)
@@ -108,6 +109,7 @@ RUN set -ex \
108109
--with-openssl \
109110
--with-libxml \
110111
--with-libxslt \
112+
--with-icu \
111113
&& make -j "$(nproc)" world \
112114
&& make install-world \
113115
&& make -C contrib install \

11/alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ RUN set -ex \
6666
# tcl-dev \
6767
util-linux-dev \
6868
zlib-dev \
69+
icu-dev \
6970
\
7071
&& cd /usr/src/postgresql \
7172
# update "DEFAULT_PGSOCKET_DIR" to "/var/run/postgresql" (matching Debian)
@@ -108,6 +109,7 @@ RUN set -ex \
108109
--with-openssl \
109110
--with-libxml \
110111
--with-libxslt \
112+
--with-icu \
111113
&& make -j "$(nproc)" world \
112114
&& make install-world \
113115
&& make -C contrib install \

Dockerfile-alpine.template

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ RUN set -ex \
6767
# tcl-dev \
6868
util-linux-dev \
6969
zlib-dev \
70+
icu-dev \
7071
\
7172
%%INSTALL_OSSP_UUID%%
7273
&& cd /usr/src/postgresql \
@@ -110,6 +111,7 @@ RUN set -ex \
110111
--with-openssl \
111112
--with-libxml \
112113
--with-libxslt \
114+
--with-icu \
113115
&& make -j "$(nproc)" world \
114116
&& make install-world \
115117
&& make -C contrib install \

update.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ for version in "${versions[@]}"; do
5353
sed -i -e 's/WALDIR/XLOGDIR/g' \
5454
-e 's/waldir/xlogdir/g' \
5555
"$version/docker-entrypoint.sh"
56+
# ICU support was introduced in PostgreSQL 10 (https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13)
57+
sed -i -e '/icu/d' "$version/Dockerfile"
5658
else
5759
# postgresql-contrib-10 package does not exist, but is provided by postgresql-10
5860
# Packages.gz:
@@ -85,6 +87,8 @@ for version in "${versions[@]}"; do
8587
sed -i -e 's/WALDIR/XLOGDIR/g' \
8688
-e 's/waldir/xlogdir/g' \
8789
"$version/$variant/docker-entrypoint.sh"
90+
# ICU support was introduced in PostgreSQL 10 (https://www.postgresql.org/docs/10/static/release-10.html#id-1.11.6.9.5.13)
91+
sed -i -e '/icu/d' "$version/$variant/Dockerfile"
8892
fi
8993

9094
# TODO remove all this when 9.3 is EOL (2018-10-01 -- from http://www.postgresql.org/support/versioning/)

0 commit comments

Comments
 (0)