forked from chroma-core/chroma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/orjson-parser-async-endpoints
- Loading branch information
Showing
30 changed files
with
759 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
docker_build('coordinator', | ||
context='.', | ||
dockerfile='./go/coordinator/Dockerfile' | ||
) | ||
|
||
docker_build('server', | ||
context='.', | ||
dockerfile='./Dockerfile', | ||
) | ||
|
||
docker_build('worker', | ||
context='.', | ||
dockerfile='./rust/worker/Dockerfile' | ||
) | ||
|
||
|
||
k8s_yaml(['k8s/dev/setup.yaml']) | ||
k8s_resource( | ||
objects=['chroma:Namespace', 'memberlist-reader:ClusterRole', 'memberlist-reader:ClusterRoleBinding', 'pod-list-role:Role', 'pod-list-role-binding:RoleBinding', 'memberlists.chroma.cluster:CustomResourceDefinition','worker-memberlist:MemberList'], | ||
new_name='k8s_setup', | ||
labels=["infrastructure"] | ||
) | ||
k8s_yaml(['k8s/dev/pulsar.yaml']) | ||
k8s_resource('pulsar', resource_deps=['k8s_setup'], labels=["infrastructure"]) | ||
k8s_yaml(['k8s/dev/server.yaml']) | ||
k8s_resource('server', resource_deps=['k8s_setup'],labels=["chroma"], port_forwards=8000 ) | ||
k8s_yaml(['k8s/dev/coordinator.yaml']) | ||
k8s_resource('coordinator', resource_deps=['pulsar', 'server'], labels=["chroma"]) | ||
k8s_yaml(['k8s/dev/worker.yaml']) | ||
k8s_resource('worker', resource_deps=['coordinator'],labels=["chroma"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
export IS_PERSISTENT=1 | ||
export CHROMA_SERVER_NOFILE=65535 | ||
exec uvicorn chromadb.app:app --workers 1 --host 0.0.0.0 --port 8000 --proxy-headers --log-config chromadb/log_config.yml --timeout-keep-alive 30 | ||
args="$@" | ||
|
||
if [[ $args =~ ^uvicorn.* ]]; then | ||
echo "Starting server with args: $(eval echo "$args")" | ||
echo -e "\033[31mWARNING: Please remove 'uvicorn chromadb.app:app' from your command line arguments. This is now handled by the entrypoint script." | ||
exec $(eval echo "$args") | ||
else | ||
echo "Starting 'uvicorn chromadb.app:app' with args: $(eval echo "$args")" | ||
exec uvicorn chromadb.app:app $(eval echo "$args") | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.