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 OCI registries. #323

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 22, 2024

  1. Add support for OCI registries.

    This patch introduces the ability to read repo contents from OCI
    registries, like ghcr.io, using the new 'oci' protocol. User can
    specify this protocol in their DNF .repo files as shown below:
    
    [oci-test]
    name=OCI Test
    baseurl=oci://ghcr.io/atgreen/librepo/gh-cli
    enabled=1
    gpgcheck=1
    
    To set up the server-side repository, create a public package
    repository in github, and populate it by pushing the repo file
    contents using the ORAS cli tool.
    
    createrepo .
    FILES=$(find . -type f | sed 's|^\./||')
    for FILE in $FILES; do
        oras push ghcr.io/atgreen/librepo/gh-cli/$FILE:latest $FILE
    done
    
    Currently, only public repositories are supported. To support private
    package repositories, a bearer token is required. Implementing this
    would necessitate changes to libdnf to allow for a bearer_token
    configuration option in .repo files.
    
    = changelog =
    msg:           Add support for OCI registries
    type:          enhancement
    atgreen committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    6809d4d View commit details
    Browse the repository at this point in the history