From b71e60a65a90d2bf916793a1e7dab8e72ca8d721 Mon Sep 17 00:00:00 2001 From: khanhtrand Date: Thu, 24 Oct 2024 11:30:24 +0700 Subject: [PATCH] Fix postgres docker build fail (#1228) Co-authored-by: khanhtranduy <130121475+khanhtranduy@users.noreply.github.com> --- docker/postgres/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/postgres/Dockerfile b/docker/postgres/Dockerfile index e536eef148..4058affb4e 100644 --- a/docker/postgres/Dockerfile +++ b/docker/postgres/Dockerfile @@ -1,11 +1,11 @@ FROM debezium/postgres:15-alpine ENV WAL2JSON_TAG=wal2json_2_5 +ENV PGVECTOR_TAG=v0.7.4 RUN apk add --no-cache --virtual .debezium-build-deps gcc clang15 llvm15 git make musl-dev pkgconf \ && git clone https://github.com/eulerto/wal2json -b master --single-branch \ && (cd /wal2json && git checkout tags/$WAL2JSON_TAG -b $WAL2JSON_TAG && make && make install) \ - && rm -rf wal2json \ - && git clone https://github.com/pgvector/pgvector.git \ - && cd pgvector \ - && make && make install \ - && rm -rf pgvector \ + && (rm -rf wal2json && [ ! -d "wal2json" ] && echo "wal2json removed successfully") \ + && git clone https://github.com/pgvector/pgvector.git -b master --single-branch \ + && (cd /pgvector && git checkout tags/$PGVECTOR_TAG -b $PGVECTOR_TAG && make && make install) \ + && (rm -rf pgvector && [ ! -d "pgvector" ] && echo "pgvector removed successfully") \ && apk del .debezium-build-deps \ No newline at end of file