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

How often to scan for docker images changes #25

Closed
rimusz opened this issue Jul 3, 2017 · 7 comments
Closed

How often to scan for docker images changes #25

rimusz opened this issue Jul 3, 2017 · 7 comments
Labels

Comments

@rimusz
Copy link
Member

rimusz commented Jul 3, 2017

an option to set how often to scan docker repository for image changes

@rusenask
Copy link
Collaborator

rusenask commented Jul 3, 2017

on polling branch default value is const KeelPollDefaultSchedule = "@every 1m but it's configurable and uses https://github.com/rusenask/cron so you can define proper schedules like:

Entry                  | Description                                | Equivalent To
-----                  | -----------                                | -------------
@yearly (or @annually) | Run once a year, midnight, Jan. 1st        | 0 0 0 1 1 *
@monthly               | Run once a month, midnight, first of month | 0 0 0 1 * *
@weekly                | Run once a week, midnight on Sunday        | 0 0 0 * * 0
@daily (or @midnight)  | Run once a day, midnight                   | 0 0 0 * * *
@hourly                | Run once an hour, beginning of hour        | 0 0 * * * *

@rimusz
Copy link
Member Author

rimusz commented Jul 3, 2017

can that be set via env var passed to container?

@rusenask
Copy link
Collaborator

rusenask commented Jul 3, 2017

currently (it's not merged yet) you need to set a label:
keel.sh/pollSchedule=@every 10m

would you want to override default to something else? definitely a reasonable feature then

@rimusz
Copy link
Member Author

rimusz commented Jul 3, 2017

nice, so with the annotation I can set different time intervals for each deployment.?

@rusenask
Copy link
Collaborator

rusenask commented Jul 3, 2017

yeah, polling trigger sets up custom cron schedules (if specified) for all watched deployments, it might have been slightly overengineered though. Current limitation is however that if you have deployment A and deployment B that rely on the same image - they will share the same schedule (the last one that starts watching will update schedule).

@rusenask
Copy link
Collaborator

rusenask commented Jul 4, 2017

available in 0.3.0 release,
more info https://github.com/rusenask/keel#polling
apparently had to use annotations to be able to use more symbols @every 10m,
example available here https://github.com/rusenask/keel#polling

@rimusz
Copy link
Member Author

rimusz commented Jul 24, 2017

we can close this one

@rimusz rimusz closed this as completed Jul 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants