-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] docker-compose default persistent directory path updated #1046
[BUG] docker-compose default persistent directory path updated #1046
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
@@ -12,7 +12,8 @@ services: | |||
dockerfile: Dockerfile | |||
volumes: | |||
- ./:/chroma | |||
- index_data:/index_data | |||
# Be aware that indexed data are located in "/chroma/chroma/" | |||
# Default configuration for persist_directory in chromadb/config.py | |||
command: uvicorn chromadb.app:app --reload --workers 1 --host 0.0.0.0 --port 8000 --log-config log_config.yml | |||
environment: | |||
- IS_PERSISTENT=TRUE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should go one step further and instead of simply removing the dir we should instead add - PERSIST_DIRECTORY=${PERSIST_DIRECTORY:-/chroma/chroma}
while this is not a huge change it does give the indication to someone reading the docker compose where is actually data persisted without having to read through the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated thanks for the suggestion I agree that it's clearly more useful and explicit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great suggestion!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Benvii did this suggestion get rewinded?
@HammadB can you take a look here? |
OK |
Thanks @Benvii ! Auto-merge enabled |
Ah, this will have to rebase off of #1054 for tests to pass. |
Fixes chroma-core#1035 Using latest docker image instead of currently last release.
458562f
to
cf52488
Compare
Rebased, thanks in advance for the approval |
Fixes #1035
Description of changes
Summarize the changes made by this PR.
/index_data
it's located at/chroma/chroma/
config.py#L85 fixing it in serveur core docker-compose/index_data
in main docker-compose.yaml file, that clearly induce in error usersDoes it introduce a breaking change ?
docker-compose.server.example.yml
as it's a exemple file this shouldn't be considered as a breaking change.Test plan
How are these changes tested?
pytest
for python,yarn test
for jsdocker-compose up -d
create a collection, stop Chroma server withdocker-compose down
and start it againdocker-compose up -d
, check the created collection still exists.Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs repository?