Skip to content

Commit

Permalink
Add Fedora 41 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Jan 6, 2025
1 parent 8a40b22 commit 4ee0ea2
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
- 38-1.6
- 39-1.5
- 40-1.14
- 41-1.4
env:
MAKE: make FEDORA_VERSION=${{ matrix.fedora }}
runs-on: ubuntu-latest
Expand Down
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ RUN --mount=type=cache,target=/var/cache/dnf \
squashfs-tools \
wget \
&& dnf clean all \
&& rm /etc/yum.repos.d/*.repo \
&& dnf config-manager \
--add-repo https://download.docker.com/linux/fedora/docker-ce.repo
&& rm /etc/yum.repos.d/*.repo

# Add docker-ce RPM repository:
# - Fedora < 41: dnf config-manager --add-repo URL
# - Fedora >= 41: dnf config-manager addrepo --from-repofile=URL
RUN dnf config-manager \
--add-repo https://download.docker.com/linux/fedora/docker-ce.repo \
|| dnf config-manager addrepo \
--from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo

COPY fedora.repo /etc/yum.repos.d/

Expand Down
8 changes: 6 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ fi

# Download rpms
mkdir -p downloads
download_opts="--skip-broken --downloaddir=downloads"
if [ ${FEDORA_MAJOR} -ge 41 ]; then
# Option for dnf5
download_opts="--best --destdir=downloads"
fi
cat rpms.lock | xargs -n256 dnf download \
--skip-broken \
${download_opts} \
--arch=${arch} --arch=noarch \
--downloaddir=downloads \
2> >(tee download.err >&2)

# Remove old packages
Expand Down
31 changes: 31 additions & 0 deletions fedora.pub
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# https://src.fedoraproject.org/rpms/fedora-repos

# Fedora 41
-----BEGIN P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WyVj9AAXUSEBR/OsakaYEMzScLnROBEU1YbWR9iHsc7M
rEsqju8tVUh1XAqIqJgLW3VrKs0g0nDVR0rBc8aDhrtVfylwWVl61gHsPFJfAkjj
OPgvQgThrhlCWo23EZSk/Hj8YRrnhUbEDnk+Z3Xv5Uyl1kxGRk5dGBnv+7u3CKvV
G6sU3tPtna/8rFblfKSMZIPhzTADdsUZ88Fn9pZkfqgPi8LZ4sS8vHtaykZmbfj6
t9a2mBYJQ+/pxiH8olzyhKMdNyesLPeQmESgwM/qlJ+b2Hbogwuuzp8o2JMezxIe
CAwLoPh+hxMPGnBRklh6Vj5R5z29wIZd6pKCavVRfJ+ON94wuOSEofhBfQNZIIFV
jagEbk60iksysxsObfVEHFhtGnZCEgCRC87BfX6tzIIDv23Zs4Bv9gcaaRXTAml2
kZXktduHkV9q3hhcoha5FgGSe244C4GsMUkWCsZtuN6tevUPo+n2ZZAA7ikQ768r
Iz9rPOI8/Ra7qnwSlNIVnkTb9bc=
=e2ew
-----END PGP PUBLIC KEY BLOCK-----

# Fedora 40
-----BEGIN PGP PUBLIC KEY BLOCK-----

Expand Down
12 changes: 9 additions & 3 deletions updater.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ RUN --mount=type=cache,target=/var/cache/dnf \
findutils \
make \
&& dnf clean all \
&& rm /etc/yum.repos.d/*.repo \
&& dnf config-manager \
--add-repo https://download.docker.com/linux/fedora/docker-ce.repo
&& rm /etc/yum.repos.d/*.repo

# Add docker-ce RPM repository:
# - Fedora < 41: dnf config-manager --add-repo URL
# - Fedora >= 41: dnf config-manager addrepo --from-repofile=URL
RUN dnf config-manager \
--add-repo https://download.docker.com/linux/fedora/docker-ce.repo \
|| dnf config-manager addrepo \
--from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo

COPY fedora.repo /etc/yum.repos.d/
RUN sed '/fastestmirror=/d' -i /etc/yum.repos.d/fedora.repo
Expand Down

0 comments on commit 4ee0ea2

Please sign in to comment.