Skip to content

Commit ab1a137

Browse files
committed
[10] feat: Install EPEL release from repos and update ahead of time
1 parent a7f2881 commit ab1a137

2 files changed

Lines changed: 16 additions & 6 deletions

File tree

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
FROM almalinux:latest
22

3-
RUN curl https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm -o epel-release-latest-10.noarch.rpm &\
4-
curl https://cli.github.com/packages/rpm/gh-cli.repo -o /etc/yum.repos.d/gh-cli.repo &\
5-
echo 'max_parallel_downloads=20' >> /etc/dnf/dnf.conf &\
3+
COPY dnf.conf /etc/dnf/dnf.conf
4+
5+
RUN curl https://cli.github.com/packages/rpm/gh-cli.repo -o /etc/yum.repos.d/gh-cli.repo &\
66
curl 'https://repos.fyralabs.com/terrael10/?sort=2' -o page.html &\
77
wait &&\
8+
dnf up -y && \
9+
dnf install -y epel-release && \
810
curl https://repos.fyralabs.com/terrael10/$(cat page.html | sed -nE 's@.*"(terra-release-[^"]+)".*@\1@p') -o terra-release.rpm &&\
911
curl https://repos.fyralabs.com/terrael10/$(cat page.html | sed -nE 's@.*"(terra-gpg-keys-[^"]+)".*@\1@p') -o terra-gpg-keys.rpm &&\
1012
rm page.html && \
1113
rpm -i ./*.rpm && \
1214
#sed -Ei "s@^#baseurl=.+@baseurl=https://dl.fedoraproject.org/pub/epel/\$releasever_major\${releasever_minor:+.\$releasever_minor}/Everything/\$basearch/@" /etc/yum.repos.d/epel.repo && \
1315
#sed -Ei '/^metalink/ s/^/#/' /etc/yum.repos.d/epel.repo && \
14-
sed -Ei '/\[crb\]/,/^$/ s@^enabled=0$@enabled=1@' /etc/yum.repos.d/almalinux-crb.repo && \
16+
#sed -Ei '/\[crb\]/,/^$/ s@^enabled=0$@enabled=1@' /etc/yum.repos.d/almalinux-crb.repo && \
1517
dnf install -y \
16-
--setopt=install_weak_deps=0 \
17-
terra-mock-configs anda-srpm-macros terra-appstream-helper redhat-rpm-config epel-rpm-macros almalinux-release adoptium-temurin-java-repository \
18+
terra-mock-configs terra-mock-gpg-keys anda-srpm-macros terra-appstream-helper redhat-rpm-config epel-rpm-macros almalinux-release adoptium-temurin-java-repository \
1819
subatomic-cli anda rpm-build git-lfs podman fuse-overlayfs mold dnf-plugins-core \
1920
wget less gh util-linux bash bzip2 cpio diffutils findutils gawk glibc-minimal-langpack grep info patch sed tar gzip unzip which xz jq &&\
2021
dnf clean all

dnf.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[main]
2+
keepcache=1
3+
retries=20
4+
gpgcheck=1
5+
metadata_expire=-1
6+
best=True
7+
tsflags=nodocs
8+
max_parallel_downloads=20
9+
#reposdir=/dev/null

0 commit comments

Comments
 (0)