Rodrigo Damazio Bovendorp
623f4e67fb
feat(filters): Add a flag/env to explicitly exclude containers by name ( #1784 )
2023-10-04 10:44:52 +02:00
bugficks
8e3bde7e0b
feat: add --health-check command line switch ( #1725 )
...
Co-authored-by: nils måsén <nils@piksel.se>
2023-09-16 21:10:00 +02:00
Arsène Fougerouse
79ebad0e19
feat: allow logging output to use JSON formatter ( #1705 )
...
Co-authored-by: nils måsén <nils@piksel.se>
2023-09-16 17:23:26 +02:00
jebabin
650acde015
feat: add a label take precedence argument ( #1754 )
...
Co-authored-by: nils måsén <nils@piksel.se>
2023-09-16 17:13:41 +02:00
nils måsén
1d5a8d9a4c
test: check flag/docs consistency ( #1770 )
2023-09-16 17:04:44 +02:00
nils måsén
9f60766692
feat: enabled loading http-api-token from file ( #1728 )
2023-08-12 19:19:08 +02:00
nils måsén
139f67270b
test(flags): ensure temp files are cleaned up ( #1727 )
2023-08-12 18:49:19 +02:00
Matthew McNeely
0fddbfb7ed
feat: allow log level to be set to any level ( #1345 )
...
Co-authored-by: nils måsén <nils@piksel.se>
2022-09-17 12:12:24 +02:00
nils måsén
f047d75dcc
fix(flags): detect schedule set from env ( #1373 )
2022-09-04 20:05:13 +02:00
nils måsén
7900471f88
feat: add porcelain output ( #1337 )
...
* feat: add porcaline output
* feat(du-cli): add create-stale action
add create-stale action
Signed-off-by: nils måsén
* test(flags): add alias tests
* fix stray format string ref
* fix shell liniting problems
* feat(du-cli): remove created images
* add test for common template
* fix interval/schedule logic
* use porcelain arg as template version
* fix editor save artifacts
* use simpler v1 template
Signed-off-by: nils måsén
2022-08-14 10:11:31 +02:00
James Laska
bd2adf6e5f
Support secrets for notification_url ( #1300 )
...
Co-authored-by: nils måsén <nils@piksel.se>
2022-08-01 20:10:36 +02:00
nils måsén
56368a7207
fix: testing for flag files on windows ( #1249 )
...
* fix: testing for flag files on windows
* fix build script on windows/msys
2022-04-18 19:38:19 +02:00
nils måsén
2f4d58776d
fix(notifications): title customization ( #1219 )
2022-04-18 19:37:13 +02:00
lazou
a5c60a9fe6
feat(notifications): add general notification delay ( #1246 )
2022-03-09 11:03:06 +01:00
Dimas Yudha P
c0fd77d357
fixing flags usage text to first capital letter. ( #1102 )
...
Co-authored-by: dimas <dimas.prawira@mncgroup.com>
2021-11-08 10:29:44 +01:00
nils måsén
e3dd8d688a
Session report collection and report templates ( #981 )
...
* wip: notification stats
* make report notifications optional
* linting/documentation fixes
* linting/documentation fixes
* merge types.Container and container.Interface
* smaller naming/format fixes
* use typed image/container IDs
* simplify notifier and update tests
* add missed doc comments
* lint fixes
* remove unused constructors
* rename old/new current/latest
2021-06-27 09:05:01 +02:00
Amir Zarrinkafsh
dc12a1ac7f
feat: allow hostname override for notifiers ( #994 )
...
* feat: allow hostname override for email notifier
As it currently stands all notifiers utilise `os.Hostname` to populate their titles/subjects.
When utilising Docker with a bridged network if you set the hostname for a container to an external DNS hostname Docker's internal DNS resolver will override said hostname for all containers within the bridged network.
This change allows a user to specify what hostname should be represented in the email notifications without having to change the `os.Hostname`.
* feat: allow custom hostname for all notifiers
* docs: adjust notification hostname flag
2021-06-24 00:29:20 +02:00
DasSkelett
6b155a111a
Allow running periodic updates with enabled HTTP API ( #916 )
...
* Allow running periodic updates with enabled HTTP API
* Add --http-api-periodic-polls to docs
2021-04-27 22:18:45 +02:00
nils måsén
b4cf17d33f
feat: make head pull failure warning toggleable ( #912 )
...
* feat: make head pull failure warning toggleable
* expect prometheus tests to go through EVENTUALLY
* wait for queue to be empty before checking test conditions
* clean up new head failure toggle
* fixup! clean up new head failure toggle
* test: add registry tests
* test: add warn on head failure tests
* fix client interface and make tests hit more lines
* make all tests use NewClient instead of creating a struct pointer
* fix lint issues
Co-authored-by: Simon Aronsson <simme@arcticbit.se>
2021-04-23 16:34:21 +02:00
ilike2burnthing
e230967196
Add WATCHTOWER_INCLUDE_RESTARTING env for include-restarting flag ( #720 )
2021-01-06 22:34:58 +01:00
Simon Aronsson
d7d5b25882
Prometheus support ( #450 )
...
Co-authored-by: nils måsén <nils@piksel.se>
Co-authored-by: MihailITPlace <ya.halo-halo@yandex.ru>
Co-authored-by: Sebastiaan Tammer <sebastiaantammer@gmail.com>
2021-01-06 22:28:32 +01:00
Simon Aronsson
8b81fbd48d
Revert "feat(config): swap viper and cobra for config ( #684 )"
...
This reverts commit ff8cb884a0
.
2020-12-21 23:08:23 +01:00
nils måsén
ff8cb884a0
feat(config): swap viper and cobra for config ( #684 )
2020-12-21 15:17:45 +01:00
nils måsén
33b4957d07
fix default interval to be the intended value ( #700 )
...
Co-authored-by: Simon Aronsson <simme@arcticbit.se>
2020-12-07 20:09:43 +01:00
Simon Aronsson
023919e0fd
actually fix it
2020-12-07 20:04:11 +01:00
Simon Aronsson
f697870ed5
fix erroneous poll interval change
2020-12-07 20:01:26 +01:00
Simon Aronsson
cb62b16369
add http head based digest comparison to avoid dockerhub rate limits
2020-12-06 13:21:04 +01:00
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>
2020-08-21 22:54:16 +02:00
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>
2020-08-21 22:35:46 +02:00
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
2020-08-21 20:13:47 +02:00
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)
2020-06-10 12:14:47 +02:00
Simon Aronsson
a70f61974c
Comment out test that is incompatible with CircleCI
2020-05-22 16:20:39 +02:00
Sebastiaan Tammer
dccdf708a9
Adds the option to skip TLS verification for a Gotify instance ( #544 )
2020-05-22 16:02:20 +02:00
Arne Jørgensen
10fd81a2c1
feat: add template support for shoutrrr notifications ( #515 )
2020-05-11 06:38:41 +02:00
Sebastiaan Tammer
7052346570
Added --trace flag and new log.Trace() lines for sensitive information ( #541 )
2020-05-11 06:09:52 +02:00
Simon Aronsson
3b60add69d
Bump minimum API version to 1.25
2020-05-11 06:03:09 +02:00
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>
2020-04-20 16:17:14 +02:00
Simon Aronsson
cb4c58f714
Merge pull request #470 from mbrandau/add-shoutrrr
...
WIP: add shoutrrr support
2020-04-05 16:46:26 +02:00
Simon Aronsson
1d1c630f7a
feat: add timeout override for pre-update lifecycle hook
2020-03-28 19:33:02 +01:00
Maximilian Brandau
59ce378a35
Adjust flags
2020-03-23 13:53:30 +01:00
Maximilian Brandau
be2376a4e1
add shoutrrr
2020-03-23 11:40:55 +01:00
Lukas Willburger
0b7069fc0c
Fix according to remarks
2020-03-22 17:16:44 +01:00
Lukas Willburger
fc3decce3a
add --no-startup-message flag
2020-03-13 10:38:33 +01:00
Simon Aronsson
ea596ea747
fix some var ref errors
2019-11-17 11:19:57 +01:00
Simon Aronsson
2a6e296838
Added Mail Subject Tag to email.go ( #389 )
...
* Update email.go
Added SubjectTag as variable
* Update email.go
* Update email.go
* Update email.go
* Update flags.go
* Update flags.go
2019-11-17 11:10:07 +01:00
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
2019-11-13 11:16:37 +01:00
Max H
9198f8972b
Update flags.go
2019-10-15 16:51:13 +02:00
Max H
6840a8c3cf
Update flags.go
2019-10-15 16:48:58 +02:00
Simon Aronsson
ce6ba0801f
feature: add optional email delay
...
resolves #256
2019-08-25 13:14:02 +02:00
Kaloyan Raev
f820eb5b3a
Add docker api version parameter ( #372 )
...
* Add docker api version parameter
* Note for minimum supported version
* Tests for EnvConfig
2019-08-25 12:37:20 +02:00