-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update PostgreSQL workflow and Dockerfile for version 17, remov…
…e trafficserver workflow
- Loading branch information
1 parent
6372eb0
commit 942f751
Showing
6 changed files
with
56 additions
and
252 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
This file was deleted.
Oops, something went wrong.
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,47 +1,38 @@ | ||
|
||
ARG BUILD_VERSION=17-alpine | ||
|
||
FROM postgres:${BUILD_VERSION} | ||
|
||
ARG PGROONGA_VERSION=3.2.4 | ||
ARG GROONGA_VERSION=14.0.9 | ||
|
||
ENV PGROONGA_VERSION=${PGROONGA_VERSION} \ | ||
GROONGA_VERSION=${GROONGA_VERSION} | ||
|
||
COPY build.sh / | ||
RUN chmod +x /build.sh | ||
RUN \ | ||
apk add --no-cache --virtual=.build-dependencies \ | ||
apache-arrow-dev \ | ||
build-base \ | ||
clang15-dev \ | ||
cmake \ | ||
git \ | ||
gettext-dev \ | ||
linux-headers \ | ||
llvm15 \ | ||
lz4-dev \ | ||
msgpack-c-dev \ | ||
rapidjson-dev \ | ||
ruby \ | ||
samurai \ | ||
xsimd-dev \ | ||
xxhash-dev \ | ||
zlib-dev \ | ||
zstd-dev && \ | ||
/build.sh && \ | ||
rm -f build.sh && \ | ||
apk del .build-dependencies && \ | ||
apk add --no-cache \ | ||
libarrow \ | ||
libxxhash \ | ||
msgpack-c \ | ||
zlib \ | ||
zstd | ||
|
||
COPY start.sh /usr/local/bin/ | ||
|
||
RUN chmod +x /usr/local/bin/start.sh | ||
|
||
ENTRYPOINT ["start.sh"] | ||
ARG TARGETARCH | ||
ARG PG_MAJOR=17 | ||
ARG PGVECTO_TAG=v0.4.0 | ||
|
||
FROM tensorchord/pgvecto-rs-binary:pg${PG_MAJOR}-${PGVECTO_TAG}-${TARGETARCH} as binary | ||
|
||
FROM groonga/pgroonga:latest-debian-${PG_MAJOR} | ||
|
||
COPY --from=binary /pgvecto-rs-binary-release.deb /tmp/vectors.deb | ||
|
||
RUN <<EOR | ||
apt-get update | ||
apt-mark hold locales | ||
apt-get install -y --no-install-recommends build-essential postgresql-server-dev-$PG_MAJOR git ca-certificates | ||
mkdir -p build | ||
cd build | ||
git clone https://github.com/pgvector/pgvector.git | ||
cd pgvector | ||
make OPTFLAGS="" && make install | ||
cd .. | ||
git clone https://github.com/citusdata/pg_cron.git | ||
cd pg_cron | ||
make && make install | ||
cd .. | ||
rm -rf build | ||
apt-get install -y /tmp/vectors.deb | ||
rm -f /tmp/vectors.deb | ||
apt-get remove -y build-essential postgresql-server-dev-$PG_MAJOR git | ||
apt-get autoremove -y | ||
apt-mark unhold locales | ||
rm -rf /var/lib/apt/lists/* | ||
EOR | ||
|
||
CMD ["postgres", \ | ||
"-c", "cron.database_name=${POSTGRES_DB:-postgres}", \ | ||
"-c", "shared_preload_libraries=pg_cron,vectors", \ | ||
"-c", "search_path=\"$user\",public,vectors", \ | ||
"-c", "logging_collector=on"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.