Skip to content

Commit c747bd8

Browse files
committed
Fix Trixie build
1 parent e8d6794 commit c747bd8

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

Dockerfile.trixie

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
ARG POSTGRES_VERSION
22
FROM postgres:${POSTGRES_VERSION}-trixie
33

4-
ENV BUILD_DEPS="build-essential git clang llvm lld"
4+
ARG POSTGRES_VERSION
5+
ENV POSTGRES_VERSION=${POSTGRES_VERSION}
6+
ENV BUILD_DEPS="build-essential git clang llvm lld postgresql-server-dev-${POSTGRES_VERSION}"
57
RUN apt-get update && \
68
DEBIAN_FRONTEND=noninteractive apt-get install -y ${BUILD_DEPS} && \
79
git clone --depth=1 https://github.com/citusdata/pg_cron /tmp/pg_cron && \
10+
mkdir -p /usr/local/share/postgresql/ && \
811
make -C /tmp/pg_cron \
9-
CLANG="$(command -v clang)" \
10-
LLVM_CONFIG="$(command -v llvm-config)" \
11-
LLVM_AR="$(command -v llvm-ar)" \
12-
LLVM_RANLIB="$(command -v llvm-ranlib)" \
13-
LLVM_LTO="$(command -v llvm-lto)" && \
12+
CLANG="$(command -v clang)" \
13+
LLVM_CONFIG="$(command -v llvm-config)" \
14+
LLVM_AR="$(command -v llvm-ar)" \
15+
LLVM_RANLIB="$(command -v llvm-ranlib)" \
16+
LLVM_LTO="$(command -v llvm-lto)" && \
1417
make -C /tmp/pg_cron install && \
1518
rm -rf /tmp/pg_cron && \
1619
apt-get remove -y ${BUILD_DEPS} && \

0 commit comments

Comments
 (0)