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

Add support for Open Source Registry endpoints #31

Merged
merged 2 commits into from
Oct 21, 2023

Conversation

josias-brenner
Copy link
Contributor

@josias-brenner josias-brenner commented Oct 20, 2023

This PR add support for endpoints to receive webhook notifications from the Open Source Registry (see issue).

The endpoint can be used in the following way:

# Kobold config
endpoints:
  - name: open-source-registry
    type: osr
    path: /osr/example-endpoint
# Registry config
version: 0.1
http:
  addr: 0.0.0.0:5000
storage:
  filesystem:
    rootdirectory: /var/lib/registry
notifications:
  events:
    includereferences: false
  endpoints:
    - name: kobold
      disabled: false
      url: https://url-to-kobold-instance:8000/osr/example-endpoint
      timeout: 1s
      threshold: 10
      backoff: 5s
      ignore:
        mediatypes:
          - application/octet-stream
        actions:
          - pull
          - mount
          - delete

I'm still not certain what this registry-implementation is called. The repository on docker-hub ist just registry, the documentation was recently moved to https://distribution.github.io/distribution/ and the README.md off it's source code (also at https://github.com/distribution/distribution/) says: "This repository's main product is the Open Source Registry".

@bluebrown
Copy link
Owner

Nice, thanks for the PR!. Maybe the type could be called distribution ? I was also thinking about this yesterday.

@josias-brenner
Copy link
Contributor Author

Nice, thanks for the PR!. Maybe the type could be called distribution ? I was also thinking about this yesterday.

I like distribution. I'll adjust the PR.

@bluebrown bluebrown merged commit 1e1e8b2 into bluebrown:main Oct 21, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants