File tree Expand file tree Collapse file tree 2 files changed +23
-11
lines changed
Expand file tree Collapse file tree 2 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 11ARG POSTGRES_VERSION
22FROM postgres:${POSTGRES_VERSION}-alpine
33
4- ENV BUILD_DEPS="build-base git clang llvm lld postgresql-server-dev-${POSTGRES_VERSION} "
4+ ENV BUILD_DEPS="build-base git clang llvm lld"
55RUN apk add --no-cache --virtual .build-deps ${BUILD_DEPS} && \
66 git clone --depth=1 https://github.com/citusdata/pg_cron /tmp/pg_cron && \
7+ mkdir -p "/usr/lib/llvm19/bin"; \
8+ for t in llvm-config clang clang++ llvm-ar llvm-ranlib llvm-lto; do \
9+ if command -v "$t" >/dev/null 2>&1; then \
10+ ln -sf "$(command -v "$t")" "/usr/lib/llvm19/bin/$t"; \
11+ fi; \
12+ done; \
713 make -C /tmp/pg_cron \
8- CLANG="$(command -v clang)" \
9- LLVM_CONFIG="$(command -v llvm-config)" \
10- LLVM_AR="$(command -v llvm-ar)" \
11- LLVM_RANLIB="$(command -v llvm-ranlib)" \
12- LLVM_LTO="$(command -v llvm-lto)" && \
14+ CLANG="$(command -v clang)" \
15+ LLVM_CONFIG="$(command -v llvm-config)" \
16+ LLVM_AR="$(command -v llvm-ar)" \
17+ LLVM_RANLIB="$(command -v llvm-ranlib)" \
18+ LLVM_LTO="$(command -v llvm-lto)" && \
1319 make -C /tmp/pg_cron install && \
1420 rm -rf /tmp/pg_cron && \
1521 apk del .build-deps && \
Original file line number Diff line number Diff line change @@ -4,12 +4,18 @@ FROM postgres:${POSTGRES_VERSION}-alpine3.22
44ENV BUILD_DEPS="build-base git clang llvm lld"
55RUN apk add --no-cache --virtual .build-deps ${BUILD_DEPS} && \
66 git clone --depth=1 https://github.com/citusdata/pg_cron /tmp/pg_cron && \
7+ mkdir -p "/usr/lib/llvm19/bin"; \
8+ for t in llvm-config clang clang++ llvm-ar llvm-ranlib llvm-lto; do \
9+ if command -v "$t" >/dev/null 2>&1; then \
10+ ln -sf "$(command -v "$t")" "/usr/lib/llvm19/bin/$t"; \
11+ fi; \
12+ done; \
713 make -C /tmp/pg_cron \
8- CLANG="$(command -v clang)" \
9- LLVM_CONFIG="$(command -v llvm-config)" \
10- LLVM_AR="$(command -v llvm-ar)" \
11- LLVM_RANLIB="$(command -v llvm-ranlib)" \
12- LLVM_LTO="$(command -v llvm-lto)" && \
14+ CLANG="$(command -v clang)" \
15+ LLVM_CONFIG="$(command -v llvm-config)" \
16+ LLVM_AR="$(command -v llvm-ar)" \
17+ LLVM_RANLIB="$(command -v llvm-ranlib)" \
18+ LLVM_LTO="$(command -v llvm-lto)" && \
1319 make -C /tmp/pg_cron install && \
1420 rm -rf /tmp/pg_cron && \
1521 apk del .build-deps && \
You can’t perform that action at this time.
0 commit comments