From ebbc2a5cf8d84e73517735733872f170dc89c6ff Mon Sep 17 00:00:00 2001 From: Trayan Azarov Date: Thu, 17 Aug 2023 16:41:27 +0300 Subject: [PATCH] Fix for recompiling hnsw lib (#11) * feat: Added integration workflow Refs: #1 * fix: Added kubectl wait to wait for deployment to complete Refs: #1 * fix: Some issue with service. Experimenting with listing service. Refs: #1 * fix: Fixed the service issue and added matrix testing of kube versions Refs: #1 * chore: Updated test matrix to match chart kubeVersion range >=1.24 <= 1.27 Refs: #1 * fix: Fixed chart issue with boolean flags - Added further variance to the test matrix by including allowReset and isPersistent flags (no specific tests are implemented but those are coming soon) Refs: #1 * fix: Added docker image hnswlib rebuild + sqlite3 for debugging - Added a small test to ensure chroma is up and running. - Docker image rebuilt. * docs: Added small clarification how to build/push the docker image. * chore: Added bug and feature request issue templates and docker image in ghcr Refs: #2 * feat: Backup and restore feature Refs: #6 * feat: Backup and restore feature - Adding sudo to the image for fsfreeze use Refs: #6 * feat: Backup and restore feature - Making chroma user sudoer Refs: #6 * feat: Adding tests for v0.4.5 * feat: Adding Chroma 0.4.5 support to chart * feat: Updating WFs * feat: Lowering chart requirements to k8s API 1.23.0 * feat: Adding multi-platform build * fix: Moved platforms out of the matrix and directly into platform parameter of build-push action * fix: Fixed a typo in build images workflow. * chore: Removing hnswlib reinstall to check multi-arch build * feat: Adding support for Chroma 0.4.6 * chore: Updating integration tests * feat: Updating chart version and default version to 0.4.6 * fix: chroma-hnswlib reinstall is needed as it does uniformly work across platforms. * chore: Chart version bump for hnsw lib fix --- charts/chromadb-chart/Chart.yaml | 2 +- image/Dockerfile | 2 +- image/docker_entrypoint.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/chromadb-chart/Chart.yaml b/charts/chromadb-chart/Chart.yaml index 7271296..5f56bfc 100644 --- a/charts/chromadb-chart/Chart.yaml +++ b/charts/chromadb-chart/Chart.yaml @@ -17,6 +17,6 @@ keywords: - ai/ml type: application -version: 0.1.11 +version: 0.1.12 # chromadb version appVersion: "0.4.6" diff --git a/image/Dockerfile b/image/Dockerfile index dc83ec0..0abd223 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -1,4 +1,4 @@ -ARG CHROMA_VERSION=0.4.3 +ARG CHROMA_VERSION=0.4.6 FROM ghcr.io/chroma-core/chroma:${CHROMA_VERSION} as base COPY ./image/docker_entrypoint.sh /docker_entrypoint.sh diff --git a/image/docker_entrypoint.sh b/image/docker_entrypoint.sh index e618116..d666279 100755 --- a/image/docker_entrypoint.sh +++ b/image/docker_entrypoint.sh @@ -3,5 +3,5 @@ export CHROMA_SERVER_HTTP_PORT=${CHROMA_SERVER_HTTP_PORT:-8000} export CHROMA_SERVER_LOG_CONFIG=${CHROMA_SERVER_LOG_CONFIG:-log_config.yaml} export CHROMA_SERVER_HOST=${CHROMA_SERVER_HOST:-"0.0.0.0"} . /chroma/venv/bin/activate -#pip install --force-reinstall --no-cache-dir chroma-hnswlib +pip install --force-reinstall --no-cache-dir chroma-hnswlib uvicorn chromadb.app:app --workers 1 --host ${CHROMA_SERVER_HOST} --port ${CHROMA_SERVER_HTTP_PORT} --proxy-headers --log-config ${CHROMA_SERVER_LOG_CONFIG}