-
Notifications
You must be signed in to change notification settings - Fork 457
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix postgres docker build fail (#1228)
Co-authored-by: khanhtranduy <130121475+khanhtranduy@users.noreply.github.com>
- Loading branch information
1 parent
12ccc8f
commit b71e60a
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |