-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Fix docker compose up and MacBook segfault #1428
base: main
Are you sure you want to change the base?
Conversation
…egfault as well when running on MacBook - ARM (collateral)
Added max workers to avoid pool error
The latest changes to dockerfiles merged address some of these issues, for example the download of models. Could you take a look and share your thoughts? #1445 |
@imartinez thanks a lot for checking in! Docker compose still doesn't work out-of-the-box cause the model is not downloaded by default, the only way to do it without embedding it in the image (ofc not feasible) is an entrypoint script, also there are two changes not present also propedeutic to make it work for the dockerfile around poetry.
And for settings to switch the vectorstore to
Also The goal of my contribution is to make the project smooth for docker and docker compose users, if you clone the repo and build image + run or just run Let me know if I can implement any changes to match more with your vision! |
Thanks for the detailed explanation.
Let me know your thoughts. |
I think that the entrypoint as proposed is a bit verbose but this may be only my own preference. I had to do a bit of research before getting up and running with compose and judging by some recent and similar issues opened I was not the only one encountering the errors. A middle ground could also be creating a Dockerfile.mac to avoid touching the original one at all, what do you think? Chroma is the only one working on mac/local if I'm not mistaken, correct? If that's the case I do think it might be better to enable it by default, what would the consequences be? Ofc it's a trade-off! The deletion of Thanks again for engaging and keep up the good work! |
Stale pull request |
Implemented what was written on this comment and added some tweaks to make it work on without manual actions on the user's side
Could actually be a good idea to add a
Dockerfile.mac
instead of messing theDockerfile.local
file up, then it needs to be used in docker-compose.yaml when running on mac.