-
Notifications
You must be signed in to change notification settings - Fork 175
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 watchtower service to automatically upgrade the shard and proxy. #3057
base: main
Are you sure you want to change the base?
Add watchtower service to automatically upgrade the shard and proxy. #3057
Conversation
57ebebe
to
ee548ee
Compare
container_name: watchtower | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
command: [ "--interval", "30", "proxy", "shard" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are those minutes or seconds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's seconds https://containrrr.dev/watchtower/arguments/#poll_interval
Seems like the default is 24h
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
container_name: watchtower | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
command: [ "--interval", "30", "proxy", "shard" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's seconds https://containrrr.dev/watchtower/arguments/#poll_interval
Seems like the default is 24h
container_name: watchtower | ||
volumes: | ||
- /var/run/docker.sock:/var/run/docker.sock | ||
command: [ "--interval", "30", "proxy", "shard" ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should also pass --cleanup
? To avoid old images accumulating
Motivation
During testnet we would like validators to be updated automatically.
Proposal
Add watch-tower to
docker-compose.yml
monitoring only the proxy and shards.Caveats
If a local image is used, automatic updating won't work since provenance is not shared with remote images.
This is a feature not a bug, if validators want they can build everything from scratch and opt-out from "forced" updates. However I see no reason why they might choose to.
Test Plan
Manual testing. CI will catch functional regressions.
Release Plan
testnet
branch, thenLinks
https://containrrr.dev/watchtower/