Skip to content

Commit f414fe3

Browse files
committed
[kitten] chore: Port changes
1 parent 2bba97f commit f414fe3

2 files changed

Lines changed: 19 additions & 7 deletions

File tree

Dockerfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
FROM almalinux:10-kitten
22

3+
COPY dnf.conf /etc/dnf/dnf.conf
4+
35
RUN curl https://cli.github.com/packages/rpm/gh-cli.repo -o /etc/yum.repos.d/gh-cli.repo &\
4-
echo 'max_parallel_downloads=20' >> /etc/dnf/dnf.conf &\
5-
curl 'https://repos.fyralabs.com/terrael10-kitten/?sort=2' -o page.html &\
6+
curl 'https://repos.fyralabs.com/terrael10/?sort=2' -o page.html &\
67
wait &&\
7-
curl https://repos.fyralabs.com/terrael10-kitten/$(cat page.html | sed -nE 's@.*"(terra-release-[^"]+)".*@\1@p') -o terra-release.rpm &&\
8-
curl https://repos.fyralabs.com/terrael10-kitten/$(cat page.html | sed -nE 's@.*"(terra-gpg-keys-[^"]+)".*@\1@p') -o terra-gpg-keys.rpm &&\
8+
dnf up -y && \
9+
dnf install -y epel-release && \
10+
curl https://repos.fyralabs.com/terrael10/$(cat page.html | sed -nE 's@.*"(terra-release-[^"]+)".*@\1@p') -o terra-release.rpm &&\
11+
curl https://repos.fyralabs.com/terrael10/$(cat page.html | sed -nE 's@.*"(terra-gpg-keys-[^"]+)".*@\1@p') -o terra-gpg-keys.rpm &&\
912
rm page.html && \
1013
rpm -i ./*.rpm && \
1114
#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 && \
@@ -14,8 +17,7 @@ RUN curl https://cli.github.com/packages/rpm/gh-cli.repo -o /etc/yum.repos.d/gh-
1417
dnf up -y && \
1518
dnf install -y epel-release && \
1619
dnf install -y \
17-
--setopt=install_weak_deps=0 \
18-
terra-mock-configs anda-srpm-macros terra-appstream-helper redhat-rpm-config epel-rpm-macros almalinux-kitten-release-latest \
19-
subatomic-cli anda rpm-build git-lfs podman fuse-overlayfs mold dnf-plugins-core \
20+
terra-mock-configs anda-srpm-macros terra-mock-gpg-keys terra-appstream-helper redhat-rpm-config epel-rpm-macros almalinux-kitten-release-latest \
21+
subatomic-cli anda{,srpm-macros} rpm-build podman fuse-overlayfs mold dnf-plugins-core \
2022
wget less gh util-linux bash bzip2 cpio diffutils findutils gawk glibc-minimal-langpack grep info patch sed tar gzip unzip which xz jq &&\
2123
dnf clean all

dnf.conf

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

0 commit comments

Comments
 (0)