Skip to content

Commit

Permalink
Update Dockerfile.shipper
Browse files Browse the repository at this point in the history
  • Loading branch information
peng9808 authored Jan 11, 2024
1 parent 8b94e40 commit 61d9d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-shipper/Dockerfile.shipper
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ RUN yum install -y --nogpgcheck wget elfutils-libelf-devel kernel-rpm-macros ker
COPY kernel-devels.centos8 /pkgs/
RUN echo "centos8 arch:$(arch)"
RUN cat /pkgs/kernel-devels.centos8 | grep -v ^# | grep $(arch) | awk '{print $1}' | xargs -tI % mkdir -vp /pkgs/% && \
sed "s/x86_64/$(arch)/g" /pkgs/kernel-devels.centos8 | grep -v ^# | awk '{print $3}' | xargs -tI % wget % --no-check-certificate && \
#cat /pkgs/kernel-devels.centos8 | grep -v ^# | grep -w $(arch) | awk '{print $3}' | xargs -tI % wget % --no-check-certificate && \
#sed "s/x86_64/$(arch)/g" /pkgs/kernel-devels.centos8 | grep -v ^# | awk '{print $3}' | xargs -tI % wget % --no-check-certificate && \
cat /pkgs/kernel-devels.centos8 | grep -v ^# | grep -w $(arch) | awk '{print $3}' | xargs -tI % wget % --no-check-certificate && \
ls -1 *.rpm | head -1 | xargs -tI % rpm -ivh % --nopreun --nopostun --force && \
ls -1 *.rpm | tail -n+2 | xargs -tI % sh -xc 'rpm2cpio % | cpio -idm' && \
rm -vf *.rpm
Expand Down

0 comments on commit 61d9d7a

Please sign in to comment.