docker-mailman icon indicating copy to clipboard operation
docker-mailman copied to clipboard

Create a mechanism to run cron jobs inside of the containers

Open maxking opened this issue 8 years ago • 4 comments

mailman-web container needs some mechanism to run the cron jobs for Hyperkitty.

http://uwsgi-docs.readthedocs.io/en/latest/Cron.html

uwsgi has some interesting ideas about running cron in the uwsgi server and might be a better idea than actually running a cron inside mailman-web.

maxking avatar May 24 '17 23:05 maxking

I.e. @indiehosters' nextcloud uses a separate cron container, as in https://github.com/indiehosters/nextcloud/blob/master/docker-compose.yml#L39-L55

cc @pierreozoux

almereyda avatar May 29 '17 14:05 almereyda

I don't want to add another container just to maintain cron jobs, especially because these jobs are tied to the Django project that is running in the mailman-web container. So, I would either have to share all the code across containers or provide access to docker.sock to the cron container which can then docker exec the cron tasks inside the web container. I don't like the idea of either of them.

This issue is kinda resolved in the latest master branch using Cron-Like functions in uwsgi.

maxking avatar May 29 '17 21:05 maxking

This should be already implemented, although the implementation itself is not correct: see #87.

ishitatsuyuki avatar Jul 24 '17 14:07 ishitatsuyuki

Yes, I think this issue is left open because of the documentation issue. I haven't documented anywhere how the jobs work.

maxking avatar Jul 24 '17 20:07 maxking

This issue has not been updated for more than 1year

github-actions[bot] avatar Dec 01 '22 22:12 github-actions[bot]