OCSInventory-Docker-Image icon indicating copy to clipboard operation
OCSInventory-Docker-Image copied to clipboard

Install cron on docker images

Open tom-ph opened this issue 2 years ago • 2 comments

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

tom-ph avatar Mar 16 '23 08:03 tom-ph

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

gaelrayot-epfl avatar Nov 23 '23 10:11 gaelrayot-epfl

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

Lea9250 avatar Nov 28 '23 14:11 Lea9250