OCSInventory-NG / OCSInventory-Docker-Image

Docker image for OCSInventory Server
GNU General Public License v3.0
80 stars 96 forks source link

Install cron on docker images #97

Open tom-ph opened 1 year ago

tom-ph commented 1 year ago

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Docker host's operating system : debian11 Mysql Server version : 8

Problem's description

In order to use OCS-Crontabs (especially for software inventory update), cron must be present in the OCS docker image (it is not at the moment). If I'm not missing something, solution should be as simple as adding cron to the list of packages to install with apt-get in the Dockerfile.

Thank you, Tommaso

gaelrayot-epfl commented 1 year ago

This is even worse when you take a look at the OCSInventory report session folder that does not get cleaned.

Lea9250 commented 12 months ago

Hi @tom-ph,

Regarding the crontab implementation, we have a bit of documentation available here : https://wiki.ocsinventory-ng.org/13.Docker-documentation/Using-the-docker-image/#crontab-implementation

@gaelrayot-epfl, since the 2.12.1 release, php sessions are now destroyed at the end of our cron scripts, so sessions should no longer accumulate.

Regards, Léa