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 hashed mode to Poudriere #751

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

Commits on Jun 29, 2024

  1. Add support for hashed mode to Poudriere

    Creates the repo with hash-based filenames to allow use of a CDN
    
    Setting `PKG_HASH="yes"` in poudriere.conf will build a repo where
    all of the packages are in All/Hashed/ and the repo manifest points there.
    
    It also creates a set of symlinks in the All/ directory, but these
    are purely for poudriere itself, to find dependencies. The symlinks
    should NOT be published, only the Hashed/ directory is required.
    
    This mechanism ensures that the package files themselves can be
    cached by a CDN as the filename will change if the contents ever
    differ.
    
    The repo metadata files (those outside of All/) should be set
    to have a very low cache expiration, so that when a new package
    set is published they are updated and reflect the new packages.
    
    Technically this feature also allows "previous" versions of packages
    to continue to be available via the CDN, but that is a side-effect
    not a purposeful feature.
    
    Sponsored-by: Klara, Inc.
    Sponsored-by: TitanHQ
    allanjude committed Jun 29, 2024
    Configuration menu
    Copy the full SHA
    6cd9729 View commit details
    Browse the repository at this point in the history