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

Add option for unattended upgrades #58

Open
Noki opened this issue Nov 16, 2019 · 3 comments
Open

Add option for unattended upgrades #58

Noki opened this issue Nov 16, 2019 · 3 comments

Comments

@Noki
Copy link

Noki commented Nov 16, 2019

I would love to see an option (ENV variable) that allows the container to automatically upgrade itself to the latest version. With a cronjob and "flexget -V" it should be possible to detect that a newer version is available and then the container could just restart itself, which is currently the upgrade method.

@cpoppema
Copy link
Owner

Hello @Noki I guess it would indeed be fairly simple to compare the versions output by flexget -V.
Killing the flexget container (gracefully if at all possible) from the inside would rely on either docker run --restart unless-stopped or its equivalent in a docker-compose.yml. I don't think it will work with "regular" docker create and start commands (without an external process manager like systemd/supervisor). How are you starting your container ?

@Noki
Copy link
Author

Noki commented Nov 17, 2019

Currently I do it using the UI of my Synology NAS. It's basically docker run --restart unless-stopped. In addition I use Ouroboros (https://github.com/pyouroboros/ouroboros) to automatically update some containers that change and that are usually safe to update automatically.

Automatically updating the the docker-flexget container / repo for every new flexget version would probably be the best choice because it would than work with Ouroboros or Watchtower. I think you could automate it with GitHub Actions, however I have never done this myself.

@opicron
Copy link

opicron commented Jan 16, 2021

I am using watchtower on the synology and every docker is nicely updated all the time. By far the best solution.

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