-
Notifications
You must be signed in to change notification settings - Fork 808
Fix docker orphan warnings, hanging localai_default network and ollama containers, and optimize start time through dependencies. #35
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
base: main
Are you sure you want to change the base?
Conversation
…a containers, and optimize start time through dependencies.
To help with testing. This is what the output looks like when running
and this is the output with the suggested PR with all identified issues corrected:
|
Add health checks for all services to docker-compose file.
@ytkaczyk So sorry that it took me so long to get to this PR! I really appreciate your work. Someone in the Dynamous community has been helping me some with this package and he created this PR which I merged recently: I think that covers a lot of the same things, but maybe you could take a look if you are willing and see if there is a more atomic PR you could make that covers something here that isn't in 51? |
Hi @coleam00 . Thank you for the feedback and for sharing the new PR. If there had been any concerns about my original PR like the additional health checks, I would have been more than happy to amend it. I think collaborating on improvements might have helped to ensure that all intended code was included and to maintain authorship continuity. I’d appreciate it if you could reference the original PR in the new one and in the commit message, for attribution purposes. It looks like at least one change didn’t make it into the merged PR—I’ll go ahead and submit a follow-up when I get a chance. Please don’t hesitate to reach out if there’s anything I can adjust in it or if you have any preferences for PR messages and so forth. Thanks again for your work on this project and for everything you share with the open source community. I’m excited to continue contributing as I’m able. |
Addresses the following items:
warning msg=Found orphan containers
start_services.py
script with no container running and with containers already runninginclude
top level element instead of using multiple-f
arguments in the docker compose commands.localai_default
network not releases andollama
containers still running when runningdocker compose down
command--profile
to the docker down command in thestart_services.py
script and in the documentation--profile
prevents the issue for happening and not clean up needed.ollama
containers not updated when runningdocker compose pull
commandSymptoms: no ollama container displayed in the list when running the pull command
Fixed by adding the --profile to the docker pull command in the documentation
@coleam00 , I had to include one of the health checks from my other PR #34 since I added a dependency from n8n on qdrand and a health check was needed for that. I don't think it should but hope it doesn't create a conflict when you merge the two PRs but something to look out for.