README.md

archive-repo-manager

Tool to manage the Fedora Archive yum repository

How to use the repo:

sudo tee /etc/yum.repos.d/fedora-archive.repo <<'EOF'
[archive]
name=Fedora $releasever - $basearch - Archive
baseurl=https://dustymabe-archive-repo-poc.s3.amazonaws.com/$basearch/
#baseurl=http://download.example/pub/fedora/linux/releases/$releasever/Everything/$basearch/os/
enabled=1
metadata_expire=7d
repo_gpgcheck=0
type=rpm
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
skip_if_unavailable=True
cost=10000 #default is 1000
EOF

dnf install foo

Rough notes for running archive-repo-manager locally:

 export S3BUCKET=dustymabe-archive-repo-poc
 export AWSACCESSKEYID=
 export AWSSECRETACCESSKEY=
podman build -t archive-repo-manager .
podman run -it --rm             \
    -e AWSACCESSKEYID           \
    -e AWSSECRETACCESSKEY       \
    -e S3BUCKET                 \
    --device /dev/fuse          \
    --name archive-repo-manager \
    archive-repo-manager

If you'd like you can add --entrypoint=/bin/bash. Then you can do the s3fs mount and run /usr/local/lib/archive_repo_manager.py directly.