Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install cron on docker images #97

Open
tom-ph opened this issue Mar 16, 2023 · 2 comments
Open

Install cron on docker images #97

tom-ph opened this issue Mar 16, 2023 · 2 comments

Comments

@tom-ph
Copy link

tom-ph commented Mar 16, 2023

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 tom-ph mentioned this issue Apr 3, 2023
3 tasks
dorpauli added a commit to dorpauli/OCSInventory-Docker-Image that referenced this issue Apr 3, 2023
@gaelrayot-epfl
Copy link

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

@Lea9250
Copy link
Contributor

Lea9250 commented Nov 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants