diff --git a/docker/compose/postgres.yml b/docker/compose/postgres.yml index ecf085f..d43baf0 100644 --- a/docker/compose/postgres.yml +++ b/docker/compose/postgres.yml @@ -1,6 +1,6 @@ services: postgres_db: - image: ghcr.io/divyam234/postgres + image: ghcr.io/tgdrive/postgres container_name: postgres_db restart: always networks: diff --git a/docker/postgres/Dockerfile b/docker/postgres/Dockerfile deleted file mode 100644 index 49c0cb7..0000000 --- a/docker/postgres/Dockerfile +++ /dev/null @@ -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 \ No newline at end of file diff --git a/docker/postgres/build.sh b/docker/postgres/build.sh deleted file mode 100644 index b912cb8..0000000 --- a/docker/postgres/build.sh +++ /dev/null @@ -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 \ No newline at end of file