Closed JamesTimms closed 2 years ago
The web
service depends on the core
one, which builds the dispatch-local
image. Does the following hold true if you delete the dispatch-local
image from your system and remove the core
service from the docker-compose.yml file?
I ended up removing it from the docker setup and the application still ran perfectly fine.
It's entirely likely that the docker-compose is not efficient. You're correct that after the web and schedule containers are built core
is no longer needed but was the easiest way to speed up the build (instead of making scheduler and web both build all their deps). Happy to accept to PRs if something can be done better here. We don't deploy using docker so our investment is limited.
Thanks for clarifying. I think this just needs adding to documentation somewhere as it's not very obvious what the core is used for.
@mvilanova I deleted just the container and not the image. I imagine I'd have issues if I deleted the image and removed core from the Dockerfile.
This issue is stale, because it has been open for 30 days with no activity. Remove the stale label or comment, or this will be closed in 5 days.
Added a note for it in this section of the documentation: https://hawkins.gitbook.io/dispatch/installation#installing-dispatch-server
Is your feature request related to a problem? Please describe. I'm trying to understand how the core component works and what it's used for but as far as I can tell it isn't used at all (as of
v20220214
). I ended up removing it from the docker setup and the application still ran perfectly fine. Is it deprecated or am I missing some crucial insight?It seems to be using the same entry point as the web component except it isn't exposing itself in the same way.
Describe the solution you'd like The core component should be removed or its use better documented.
Describe alternatives you've considered I've stopped the core container within the local docker setup, which seemed to be the best work around.
Additional context Notice the command for
dispatch_web_1
versusdispatch_core_1
.This was left running for 2 days and no logs were generated until I stopped the container. Whereas the web and scheduler components are a lot noisier.
The environment variables appear to be identical.