RFC: Running moodle cron via docker.

RFC: Running moodle cron via docker.

Dimitrios Desyllas -
回帖数: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.

回复Dimitrios Desyllas

Re: RFC: Running moodle cron via docker.

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 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.
回复Dimitrios Desyllas

Re: RFC: Running moodle cron via docker.

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

https://github.com/sammuelcp/moodle-docker
回复Sammuel Cavalcante Cavalcante

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

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