Skip to content

Commit

Permalink
Merge pull request #1911 from vinayakankugoyal/setcap
Browse files Browse the repository at this point in the history
Fix s390x build failures in setcap.
  • Loading branch information
k8s-ci-robot authored Feb 13, 2021
2 parents e1aa7aa + 1bd4285 commit ee48b60
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion images/build/setcap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,15 @@ ARG BASEIMAGE

FROM ${BASEIMAGE}

RUN apt-get update && apt-get -y --no-install-recommends install libcap2-bin
# An attempt to fix issues like:
# ```
# Error while loading /usr/sbin/dpkg-split: No such file or directory
# Error while loading /usr/sbin/dpkg-deb: No such file or directory
# ```
# See: https://github.com/docker/buildx/issues/495
RUN ln -s /usr/bin/dpkg-split /usr/sbin/dpkg-split \
&& ln -s /usr/bin/dpkg-deb /usr/sbin/dpkg-deb \
&& ln -s /bin/tar /usr/sbin/tar \
&& ln -s /bin/rm /usr/sbin/rm \
&& apt-get update \
&& apt-get -y --no-install-recommends install libcap2-bin

0 comments on commit ee48b60

Please sign in to comment.