mirror of
https://github.com/tgdrive/teldrive.git
synced 2025-02-23 22:45:11 +08:00
chore: Update Docker image templates and manifest names
This commit is contained in:
parent
b42d5aebf1
commit
aff0317f08
3 changed files with 1 additions and 83 deletions
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
postgres_db:
|
||||
image: ghcr.io/divyam234/postgres
|
||||
image: ghcr.io/tgdrive/postgres
|
||||
container_name: postgres_db
|
||||
restart: always
|
||||
networks:
|
||||
|
|
|
@ -1,41 +0,0 @@
|
|||
FROM postgres:16-alpine
|
||||
|
||||
|
||||
ARG PGROONGA_VERSION=3.2.1
|
||||
ARG GROONGA_VERSION=14.0.5
|
||||
ARG PGVECTOR_VERSION=0.7.3
|
||||
|
||||
ENV PGROONGA_VERSION=${PGROONGA_VERSION} \
|
||||
GROONGA_VERSION=${GROONGA_VERSION} \
|
||||
PGVECTOR_VERSION=${PGVECTOR_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
|
|
@ -1,41 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
MECAB_VERSION=0.996
|
||||
|
||||
mkdir build
|
||||
pushd build
|
||||
|
||||
wget https://packages.groonga.org/source/groonga/groonga-${GROONGA_VERSION}.tar.gz
|
||||
tar xf groonga-${GROONGA_VERSION}.tar.gz
|
||||
pushd groonga-${GROONGA_VERSION}
|
||||
|
||||
pushd vendor
|
||||
ruby download_mecab.rb
|
||||
popd
|
||||
|
||||
cmake \
|
||||
-S . \
|
||||
-B ../groonga.build \
|
||||
--preset=release-maximum \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr/local
|
||||
cmake --build ../groonga.build
|
||||
cmake --install ../groonga.build
|
||||
popd
|
||||
|
||||
wget https://packages.groonga.org/source/pgroonga/pgroonga-${PGROONGA_VERSION}.tar.gz
|
||||
tar xf pgroonga-${PGROONGA_VERSION}.tar.gz
|
||||
pushd pgroonga-${PGROONGA_VERSION}
|
||||
make PGRN_DEBUG=yes HAVE_MSGPACK=1 MSGPACK_PACKAGE_NAME=msgpack-c -j$(nproc)
|
||||
make install
|
||||
popd
|
||||
|
||||
git clone --branch "v$PGVECTOR_VERSION" https://github.com/pgvector/pgvector.git
|
||||
pushd pgvector
|
||||
make -j$(nproc)
|
||||
make install
|
||||
popd
|
||||
|
||||
popd
|
||||
rm -rf build
|
Loading…
Reference in a new issue