Skip to content

Add JIT support for Alpine on 11+ #643

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions 11/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ RUN set -ex \
libxml2-dev \
libxslt-dev \
linux-headers \
llvm8-dev clang g++ \
make \
# openldap-dev \
openssl-dev \
Expand Down Expand Up @@ -111,6 +112,7 @@ RUN set -ex \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
&& make -j "$(nproc)" world \
&& make install-world \
&& make -C contrib install \
Expand Down
2 changes: 2 additions & 0 deletions 12/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ RUN set -ex \
libxml2-dev \
libxslt-dev \
linux-headers \
llvm8-dev clang g++ \
make \
# openldap-dev \
openssl-dev \
Expand Down Expand Up @@ -111,6 +112,7 @@ RUN set -ex \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
&& make -j "$(nproc)" world \
&& make install-world \
&& make -C contrib install \
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile-alpine.template
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ RUN set -ex \
libxml2-dev \
libxslt-dev \
linux-headers \
llvm8-dev clang g++ \
make \
# openldap-dev \
openssl-dev \
Expand Down Expand Up @@ -111,6 +112,7 @@ RUN set -ex \
--with-libxml \
--with-libxslt \
--with-icu \
--with-llvm \
&& make -j "$(nproc)" world \
&& make install-world \
&& make -C contrib install \
Expand Down
4 changes: 4 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ for version in "${versions[@]}"; do
if [ "$majorVersion" -gt 11 ]; then
sed -i '/backwards compat/d' "$version/$variant/Dockerfile"
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"
done
Expand Down