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

Implement Github bot for repo-info synchronization #3

Open
6 tasks
olemis opened this issue Dec 9, 2018 · 1 comment
Open
6 tasks

Implement Github bot for repo-info synchronization #3

olemis opened this issue Dec 9, 2018 · 1 comment
Assignees

Comments

@olemis
Copy link
Collaborator

olemis commented Dec 9, 2018

It should work similar to snyk bot .

  • Move drip.sh to new scripts folder
  • Implement this in cmd/repoinfobot folder
  • HTTP endpoint for connecting to Docker Hub / Cloud (or alike) web hooks
  • Schedule cron job to scrape target image.
  • Create branch with changes detected after scraping metadata
  • Submit PR if differences found

If possible language = python .

@stdevPavelmc
Copy link
Collaborator

stdevPavelmc commented Jan 4, 2019

In the research steps to this issue I see two ways of triggering the updates:

  1. Webhooks, it get triggered on any main repo update on Docker Hub (master branch) for all main docker images. (efficient and clean)
  2. Daily cron job, check if the info has changed on daily bases (crude & resource wasting)

Any of them need a permanent & defined VPS instance to run, or a docker instance with dind on it.

This two are basically mutually exclusive to avoid duplicate triggering. I will go in the Webhooks way as it's more versatile and must be reused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants