From 80064afe85495b3a3da7f89f20d917f89f86e66d Mon Sep 17 00:00:00 2001 From: Trayan Azarov Date: Thu, 28 Sep 2023 13:44:13 +0300 Subject: [PATCH] docker_entrypoint.sh: change owner of PERSIST_DIRECTORY (#21) (#22) * docker_entrypoint.sh: change owner of PERSIST_DIRECTORY (#21) - make chroma user owner of $PERSIST_DIRECTORY, otherwise sqlite crashes Signed-off-by: Rumen Ginev * fix: Version bump for #21 Refs: https://github.com/amikos-tech/chromadb-chart/pull/21 --------- Signed-off-by: Rumen Ginev Co-authored-by: Rumen Ginev --- charts/chromadb-chart/Chart.yaml | 2 +- image/docker_entrypoint.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/chromadb-chart/Chart.yaml b/charts/chromadb-chart/Chart.yaml index ccc90a0..1d1490b 100644 --- a/charts/chromadb-chart/Chart.yaml +++ b/charts/chromadb-chart/Chart.yaml @@ -16,6 +16,6 @@ keywords: - ai/ml type: application -version: 0.1.16 +version: 0.1.17 # chromadb version appVersion: "0.4.13" diff --git a/image/docker_entrypoint.sh b/image/docker_entrypoint.sh index d666279..7c464b5 100755 --- a/image/docker_entrypoint.sh +++ b/image/docker_entrypoint.sh @@ -2,6 +2,9 @@ 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"} + +sudo chown -R chroma:chroma ${PERSIST_DIRECTORY} + . /chroma/venv/bin/activate 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}