guysoft / LibrePhotosOS

An out of the box Raspberry Pi distro with LibrePhotos installed.
GNU General Public License v3.0
10 stars 1 forks source link

Autoupdate function #5

Closed derneuere closed 2 years ago

derneuere commented 2 years ago

The current setup is based on docker-compose. It would be great if there was a cronjob or script to download the latest containers and prune the old ones.

guysoft commented 2 years ago

There is already a systemd service that does this in stable: https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/docker/filesystem/root/etc/systemd/system/docker-compose.service

Its code: https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/docker/filesystem/root/usr/bin/start_docker_compose

IMHO systemd is way better than cron because you can debug the output, it knows when to start (eg after the network) and there is a standard way to enable/disable/start/stop it.

derneuere commented 2 years ago

Thanks for the clarification!