linuxserver / docker-snipe-it

Alpine/Nginx container for the Asset Management software Snipe-IT
GNU General Public License v3.0
123 stars 26 forks source link

Add scheduler crontab entry into the docker image #31

Closed imifarago closed 1 year ago

imifarago commented 2 years ago

Desired Behavior

Add artisan scheduler crontab entry into /etc/crontabs Altering: https://snipe-it.readme.io/docs/configuring-alerts-backups

/etc/crontabs/snipeit should contain: * * * * * abc /usr/bin/php /var/www/html/artisan schedule:run >> /dev/null 2>&1

Add these also - or the backup conditionally: /path/to/php artisan snipeit:backup /path/to/php artisan backup:clean /path/to/php artisan snipeit:expiring-alerts /path/to/php artisan snipeit:inventory-alerts /path/to/php artisan snipeit:expected-checkin /path/to/php artisan snipeit:user-inventory /path/to/php artisan snipeit:upcoming-audits

Current Behavior

Now crontab file have to be mounted if you want to alerting, but it should be default on laravel based applications.

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

jchue commented 2 years ago

I believe you can use the cron mod.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

nemchik commented 1 year ago

https://github.com/linuxserver/docker-snipe-it/pull/49 will include the scheduler in the image. lspipepr/snipe-it:v6.0.14-pkg-d5309d55-pr-49 needs testing. Please reply on #49 if you're able to confirm this works as needed.