RFC: Running moodle cron via docker.

RFC: Running moodle cron via docker.

by Dimitrios Desyllas -
Number of replies: 3

In my FOSS solution for dockerized moodle https://github.com/ellakcy/docker-moodle I am implementing a feature that allows you to run the moodle cron script. And I want to know if it is a good idea to run it on a seperate installation that points into the same database and data. any data will be shared via volumes.


For now I build images for php 3.5, 3.8, 3.9, 3.10, 3.11 in apache based images and in alpine based images as well. Each image is perfoming a full database installation as seen in entrypoint script: https://github.com/ellakcy/docker-moodle/blob/b91b6944b1c25154fbdb84d738d543f9b3e454a9/scripts/entrypoint.sh#L177-L181


So I wanted to know if would be a good idea to ship a full moodle installation and share the data volume or would be better just to have php and ship only the required php and modules.

Average of ratings: -
In reply to Dimitrios Desyllas

Re: RFC: Running moodle cron via docker.

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
We do see questions about Docker and Moodle and they never seem to get answers.

I don't get the impression that anybody uses it in production. I'll say what I've said before. You're essentially writing an installation script for Moodle and that's quite a personal thing depending on your own needs. I don't think they transfer well.
In reply to Dimitrios Desyllas

Re: RFC: Running moodle cron via docker.

by Sammuel Cavalcante Cavalcante -
I added cron in the same container as the application.

https://github.com/sammuelcp/moodle-docker
In reply to Sammuel Cavalcante Cavalcante

Απάντηση: Re: RFC: Running moodle cron via docker.

by Dimitrios Desyllas -
So you ship moodle with into is own dedicated cron and use only the volume for moodledata.