Skip to content

Commit

Permalink
chore(images): more fixes.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
FedeDP committed Jan 31, 2024
1 parent 51ad010 commit e8bddbd
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions images/aarch64/amazonlinux2/5.4/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ RUN yum install -y \
URL=$(cat mirror.list) && \
curl -sLO "${URL}"/repodata/primary.xml.gz && \
gunzip primary.xml.gz && \
grep -E 'kernel-headers-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-headers-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo headers.rpm ${URL}/@ && \
grep -E 'kernel-devel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-devel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo sources.rpm ${URL}/@ && \
yum install -y ./*.rpm && \
rm -v ./*.rpm && \
Expand Down
4 changes: 2 additions & 2 deletions images/aarch64/amazonlinux2/5.4/Dockerfile.kernel
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ RUN touch .placeholder && \
URL=$(cat mirror.list) && \
curl -sLO "${URL}"/repodata/primary.xml.gz && \
gunzip primary.xml.gz && \
grep -E 'kernel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo kernel.rpm ${URL}/@ && \
grep -E 'kernel-devel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-devel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo headers.rpm ${URL}/@ && \
rpm2cpio kernel.rpm > kernel.cpio && \
rpm2cpio headers.rpm > headers.cpio && \
Expand Down
4 changes: 2 additions & 2 deletions images/aarch64/amazonlinux2022/5.15/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ RUN dnf groupinstall -y 'Development Tools' && \
URL=$(cat mirror.list) && \
curl -sLO "${URL}"repodata/primary.xml.gz && \
gunzip primary.xml.gz && \
grep -E 'kernel-headers-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-headers-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo headers.rpm ${URL}@ && \
grep -E 'kernel-devel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-devel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo sources.rpm ${URL}@ && \
dnf install -y ./*.rpm && \
rm -f ./*.rpm && \
Expand Down
4 changes: 2 additions & 2 deletions images/aarch64/amazonlinux2022/5.15/Dockerfile.kernel
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ RUN touch .placeholder && \
URL=$(cat mirror.list) && \
curl -sLO "${URL}"repodata/primary.xml.gz && \
gunzip primary.xml.gz && \
grep -E 'kernel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo kernel.rpm ${URL}@ && \
grep -E 'kernel-devel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-devel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo headers.rpm ${URL}@ && \
rpm2cpio kernel.rpm > kernel.cpio && \
rpm2cpio headers.rpm > headers.cpio && \
Expand Down
4 changes: 2 additions & 2 deletions images/x86_64/amazonlinux2/4.19/Dockerfile.kernel
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ RUN touch .placeholder && \
URL=$(cat mirror.list) && \
curl -sLO "${URL}"/repodata/primary.xml.gz && \
gunzip primary.xml.gz && \
grep -E 'kernel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo kernel.rpm ${URL}/@ && \
grep -E 'kernel-devel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-devel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo headers.rpm ${URL}/@ && \
rpm2cpio kernel.rpm > kernel.cpio && \
rpm2cpio headers.rpm > headers.cpio && \
Expand Down
4 changes: 2 additions & 2 deletions images/x86_64/amazonlinux2/5.10/Dockerfile.kernel
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ RUN touch .placeholder && \
URL=$(cat mirror.list) && \
curl -sLO "${URL}"/repodata/primary.xml.gz && \
gunzip primary.xml.gz && \
grep -E 'kernel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo kernel.rpm ${URL}/@ && \
grep -E 'kernel-devel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-devel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo headers.rpm ${URL}/@ && \
rpm2cpio kernel.rpm > kernel.cpio && \
rpm2cpio headers.rpm > headers.cpio && \
Expand Down
4 changes: 2 additions & 2 deletions images/x86_64/amazonlinux2/5.15/Dockerfile.kernel
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ RUN touch .placeholder && \
URL=$(cat mirror.list) && \
curl -sLO "${URL}"/repodata/primary.xml.gz && \
gunzip primary.xml.gz && \
grep -E 'kernel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo kernel.rpm ${URL}/@ && \
grep -E 'kernel-devel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-devel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo headers.rpm ${URL}/@ && \
rpm2cpio kernel.rpm > kernel.cpio && \
rpm2cpio headers.rpm > headers.cpio && \
Expand Down
4 changes: 2 additions & 2 deletions images/x86_64/amazonlinux2/5.4/Dockerfile.kernel
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ RUN touch .placeholder && \
URL=$(cat mirror.list) && \
curl -sLO "${URL}"/repodata/primary.xml.gz && \
gunzip primary.xml.gz && \
grep -E 'kernel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo kernel.rpm ${URL}/@ && \
grep -E 'kernel-devel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-devel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo headers.rpm ${URL}/@ && \
rpm2cpio kernel.rpm > kernel.cpio && \
rpm2cpio headers.rpm > headers.cpio && \
Expand Down
4 changes: 2 additions & 2 deletions images/x86_64/amazonlinux2022/5.15/Dockerfile.kernel
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ RUN touch .placeholder && \
URL=$(cat mirror.list) && \
curl -sLO "${URL}"repodata/primary.xml.gz && \
gunzip primary.xml.gz && \
grep -E 'kernel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo kernel.rpm ${URL}@ && \
grep -E 'kernel-devel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-devel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo headers.rpm "${URL}@" && \
rpm2cpio kernel.rpm > kernel.cpio && \
rpm2cpio headers.rpm > headers.cpio && \
Expand Down
4 changes: 2 additions & 2 deletions images/x86_64/amazonlinux2023/6.1/Dockerfile.kernel
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ RUN touch .placeholder && \
URL=$(cat mirror.list) && \
curl -sLO "${URL}"repodata/primary.xml.gz && \
gunzip primary.xml.gz && \
grep -E 'kernel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo kernel.rpm ${URL}@ && \
grep -E 'kernel-devel-'${VERSION}'.rpm' primary.xml | grep href | cut -d\" -f2 | \
grep -E 'kernel-devel-'${VERSION}'.*.rpm' primary.xml | grep href | cut -d\" -f2 | \
xargs -I@ curl -Lo headers.rpm "${URL}@" && \
rpm2cpio kernel.rpm > kernel.cpio && \
rpm2cpio headers.rpm > headers.cpio && \
Expand Down

0 comments on commit e8bddbd

Please sign in to comment.