mirror of
https://github.com/placeholder-soft/chroma.git
synced 2026-01-12 08:44:18 +08:00
This proposes an initial CLI The CLI is installed when you installed `pip install chromadb`. You then call the CLI with `chroma run --path <persist_dir> --port <port>` where path and port are optional. This also adds `chroma help` and `chroma docs` as convenience links - but I'm open to removing those. To make this easy - I added `typer` (by the author of FastAPI). I'm not sure this is the tool that we want to commit to for a fuller featured CLI, but given the extremely minimal footprint of this - I don't think it's a one way door. <img width="1477" alt="Screenshot 2023-08-23 at 4 59 54 PM" src="https://github.com/chroma-core/chroma/assets/891664/30374228-d303-41e1-8e9e-188b7f8532d4"> *** #### TODO - [x] test in fresh env - i think i need to add `typer` as a req - [ ] consider expanding the test to make sure the service is actually running - [x] hide the test option from the typer UI - [x] linking to a getting started guide could be interesting at the top of the logs
30 lines
577 B
YAML
30 lines
577 B
YAML
version: '3.9'
|
|
|
|
networks:
|
|
test_net:
|
|
driver: bridge
|
|
|
|
services:
|
|
test_server:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
volumes:
|
|
- ./:/chroma
|
|
- test_index_data:/index_data
|
|
command: uvicorn chromadb.app:app --workers 1 --host 0.0.0.0 --port 8000 --log-config chromadb/log_config.yml
|
|
environment:
|
|
- ANONYMIZED_TELEMETRY=False
|
|
- ALLOW_RESET=True
|
|
- IS_PERSISTENT=TRUE
|
|
ports:
|
|
- ${CHROMA_PORT}:8000
|
|
networks:
|
|
- test_net
|
|
|
|
volumes:
|
|
test_index_data:
|
|
driver: local
|
|
test_backups:
|
|
driver: local
|