-
Notifications
You must be signed in to change notification settings - Fork 81
system cron #49
Comments
On my setup I use a systemd timer for that. You could also use docker exec for it: owncloud-cron.service
owncloud-cron.timer
|
Benefit of external controlled execution:
|
that's what what I'm doing for now but it's cumbersome to have to manually configure cron externally. Of course if you have specific needs you should be able to disable it and run it your own way. but I guess most people don't really care that much about that. I'll try to build an image with s6 to run both apache & cron, it should not be too hard and would provide a nicer experience out of the box (especially if using the news app) |
What would be the best way to do it? The easiest way would be to start a background shell in entrypoint.sh that executes the cron every 5 minutes. The probably cleaner way would be to start supervisord. I could make a pull request, but I'm not sure about the preferred architecture in this repository. |
Indeed, I'd be curious to know the taste of the owner of the repo on that matter. I think I'd prefer a separate container. Especially because there is a default web cron. @tianon what is your take on that? |
It's also possible to use the cron of the host system: "docker exec -u www-data [container id or name] php -f /var/www/html/cron.php" should do the job. |
Seeing the comment on the piwik discussion I guess we can close the issue. I found an "elegant" way to solve this from compose: What do you think? |
@pierreozoux I don't think your "docker compose way" solves the issue. it does work, as does en external cron or systemd job but it does not work "out of the box", still needs manual configuration |
@mathroc welll, none Docker official image work "out of the box" you always need to wire a database. I have great hope for the new "store" feature: https://store.docker.com/beta and the Docker App bundle this would allow us to ship artifact that would work "out of the box" for real! |
I actually switched this to exec a while back:
With the same timer file as before |
Closing given that this image will no longer be updated.
|
to have owncloud use system cron when using docker images, it would be nice to have cron running too in the container and already configured according to https://doc.owncloud.org/server/8.2/admin_manual/configuration_server/background_jobs_configuration.html
The text was updated successfully, but these errors were encountered: