Skip to content

Commit

Permalink
docker_entrypoint.sh: change owner of PERSIST_DIRECTORY (#21) (#22)
Browse files Browse the repository at this point in the history
* docker_entrypoint.sh: change owner of PERSIST_DIRECTORY (#21)

- make chroma user owner of $PERSIST_DIRECTORY, otherwise sqlite crashes

Signed-off-by: Rumen Ginev <[email protected]>

* fix: Version bump for #21

Refs: #21

---------

Signed-off-by: Rumen Ginev <[email protected]>
Co-authored-by: Rumen Ginev <[email protected]>
  • Loading branch information
tazarov and rginev authored Sep 28, 2023
1 parent 7cc339f commit 80064af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/chromadb-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ keywords:
- ai/ml
type: application

version: 0.1.16
version: 0.1.17
# chromadb version
appVersion: "0.4.13"
3 changes: 3 additions & 0 deletions image/docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 80064af

Please sign in to comment.