You've already forked postgres
mirror of
https://github.com/docker-library/postgres.git
synced 2025-07-28 10:42:06 +03:00
Add JIT support for Alpine on 11+
This commit is contained in:
@ -54,6 +54,7 @@ RUN set -ex \
|
|||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
|
llvm8-dev clang g++ \
|
||||||
make \
|
make \
|
||||||
# openldap-dev \
|
# openldap-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
@ -111,6 +112,7 @@ RUN set -ex \
|
|||||||
--with-libxml \
|
--with-libxml \
|
||||||
--with-libxslt \
|
--with-libxslt \
|
||||||
--with-icu \
|
--with-icu \
|
||||||
|
--with-llvm \
|
||||||
&& make -j "$(nproc)" world \
|
&& make -j "$(nproc)" world \
|
||||||
&& make install-world \
|
&& make install-world \
|
||||||
&& make -C contrib install \
|
&& make -C contrib install \
|
||||||
|
@ -54,6 +54,7 @@ RUN set -ex \
|
|||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
|
llvm8-dev clang g++ \
|
||||||
make \
|
make \
|
||||||
# openldap-dev \
|
# openldap-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
@ -111,6 +112,7 @@ RUN set -ex \
|
|||||||
--with-libxml \
|
--with-libxml \
|
||||||
--with-libxslt \
|
--with-libxslt \
|
||||||
--with-icu \
|
--with-icu \
|
||||||
|
--with-llvm \
|
||||||
&& make -j "$(nproc)" world \
|
&& make -j "$(nproc)" world \
|
||||||
&& make install-world \
|
&& make install-world \
|
||||||
&& make -C contrib install \
|
&& make -C contrib install \
|
||||||
|
@ -54,6 +54,7 @@ RUN set -ex \
|
|||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
|
llvm8-dev clang g++ \
|
||||||
make \
|
make \
|
||||||
# openldap-dev \
|
# openldap-dev \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
@ -111,6 +112,7 @@ RUN set -ex \
|
|||||||
--with-libxml \
|
--with-libxml \
|
||||||
--with-libxslt \
|
--with-libxslt \
|
||||||
--with-icu \
|
--with-icu \
|
||||||
|
--with-llvm \
|
||||||
&& make -j "$(nproc)" world \
|
&& make -j "$(nproc)" world \
|
||||||
&& make install-world \
|
&& make install-world \
|
||||||
&& make -C contrib install \
|
&& make -C contrib install \
|
||||||
|
@ -96,6 +96,10 @@ for version in "${versions[@]}"; do
|
|||||||
if [ "$majorVersion" -gt 11 ]; then
|
if [ "$majorVersion" -gt 11 ]; then
|
||||||
sed -i '/backwards compat/d' "$version/$variant/Dockerfile"
|
sed -i '/backwards compat/d' "$version/$variant/Dockerfile"
|
||||||
fi
|
fi
|
||||||
|
if [ "$majorVersion" -lt 11 ]; then
|
||||||
|
# JIT / LLVM is only supported in PostgreSQL 11+ (https://github.com/docker-library/postgres/issues/475)
|
||||||
|
sed -i '/llvm/d' "$version/$variant/Dockerfile"
|
||||||
|
fi
|
||||||
|
|
||||||
travisEnv="\n - VERSION=$version VARIANT=$variant$travisEnv"
|
travisEnv="\n - VERSION=$version VARIANT=$variant$travisEnv"
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user