Commit Graph

29 Commits (8b81fbd48d2fcbae853d8af582c7da9b3b391457)

Author SHA1 Message Date
Simon Aronsson 8b81fbd48d
Revert "feat(config): swap viper and cobra for config (#684)"
This reverts commit ff8cb884a0.
4 years ago
nils måsén ff8cb884a0
feat(config): swap viper and cobra for config (#684) 4 years ago
yrien30 2842b97df3
Allow watchtower to update rebooting containers (#651)
Co-authored-by: nils måsén <nils@piksel.se>
Co-authored-by: Simon Aronsson <simme@arcticbit.se>
4 years ago
Simon Aronsson a7a28ec984
fix fmt and vetting issues 4 years ago
bugficks 158b6935d4
Disabling color through environment variables (#598)
* This patch adds support for disabling color through environment variables.
- NO_COLOR: https://no-color.org/
- CLICOLOR,CLICOLOR_FORCE: https://bixense.com/clicolors/ ( [logrus built-in](6699a89a23/text_formatter.go (L46)) )

* use viper/cobra and add documentation. (https://github.com/containrrr/watchtower/pull/598#pullrequestreview-463814669)

Co-authored-by: Simon Aronsson <simme@arcticbit.se>
4 years ago
Ben Osheroff c56e0a95a7
Rolling restart (#619)
* implement rolling restart functionality

bouncing each image individually can ensure that a group of docker
containers launched with docker-compose can stay 100% up during deploy.

* move rolling restart into a function

* honor params.Cleanup

Co-authored-by: Simon Aronsson <simme@arcticbit.se>
4 years ago
Victor Moura 6a18ee911e
Adds scopeUID config to enable multiple instances of Watchtower (#511)
* Adds scopeUID config to enable multiple instances of Watchtower

* Adds tests for multiple instance support with scopeuid

* Adds docs on scope monitoring and multiple instance support

* Adds multiple instances docs to mkdocs config file

* Changes multiple instances check and refactors naming for scope feature

* Applies linter suggestions

* Fixes documentation on Watchtower monitoring scope
4 years ago
Cédric Finance fdecd40189
Make sure all shoutrrr notifications are sent (#564) 4 years ago
MihailITPlace 966972b072
Warning if `WATCHTOWER_NO_PULL` and` WATCHTOWER_MONITOR_ONLY` are used simultaneously. (#594)
* A warning was added if `WATCHTOWER_NO_PULL` and` WATCHTOWER_MONITOR_ONLY` are used simultaneously

* Update root.go

Co-authored-by: Simon Aronsson <simme@arcticbit.se>
4 years ago
Sebastiaan Tammer 12d323354f
Allows flags containing sensitive stuff to be passed as files (#545)
* Allows options containing sensitive stuff (passwords, tokens) to be passed as a file instead

* Fixed linter error, added tests, removed notification-url (due to being an array)
4 years ago
Sebastiaan Tammer 7052346570
Added --trace flag and new log.Trace() lines for sensitive information (#541) 5 years ago
Victor Moura 0217e116c4
Watchtower HTTP API based updates (#432)
* Added HTTP API trigger to update running images

* Adds HTTP API authentication token parameter and handling

* Exposes port 8080 in Dockerfile to allow inter-container update triggering via HTTP API

* Fixes codacy issue

* Adds API usage doc

* Fix grammar

* Moves api logic to a package of its own

* Makes WT exit if token has not been set in HTTP API mode

* Adds lock to prevent concurrent updates when in HTTP API mode

Co-authored-by: Simon Aronsson <simme@arcticbit.se>
5 years ago
Maximilian Brandau 205b1766b4
fix #472 5 years ago
Lukas Willburger fc3decce3a add --no-startup-message flag 5 years ago
Simon Aronsson d1abce889a refactor: extract code from the container package 5 years ago
Zois Pagoulatos 157ddb86a7
#413 Change initial logging message from debug to info 5 years ago
Zois Pagoulatos 2d8507ca31 Add --revive-stopped flag to start stopped containers after an update (#403)
* Add --revive-stopped flag to start stopped containers after an update

* Update arguments.md
5 years ago
Simon Aronsson 17cbf86d48 fix: switch exit code for run once to 0
this resolves #347
5 years ago
Kaloyan Raev f820eb5b3a Add docker api version parameter (#372)
* Add docker api version parameter

* Note for minimum supported version

* Tests for EnvConfig
5 years ago
Simon Aronsson bfae38dbf8
Feat/lifecycle hooks (#351)
* feat(update): add lifecycle hooks to the update action

* fix(ci): add bash tests for lifecycle-hooks to the ci workflow

* fix(ci): move integration tests to an isolated step

* fix(ci): fix malformed all-contributors json

* fix(ci): disable automatic bash test until we figure out a reasonable way to run it in circleci
5 years ago
Simon Aronsson e4e1127f8e fix: remove linting issues 5 years ago
Simon Aronsson a425bf1024 refactor: move actions into internal 5 years ago
Simon Aronsson 62f603bb25 refactor: move actions into pkg 5 years ago
Simon Aronsson 74ce92760c refactor: move container into pkg 5 years ago
Simon Aronsson e109a7a6ce refactor: extract types and pkgs to new files 5 years ago
Zois Pagoulatos baf5e50051 Re-apply based on new go flags package (#336) 5 years ago
Simon Aronsson 9eca883f17 fix: remove unnecessary cronSet check
resolves issue 343
5 years ago
Simon Aronsson 972b0b276f fix linter errors 5 years ago
Simon Aronsson 998e8052c5 switch urfave to cobra 5 years ago