Skip to content

Commit

Permalink
Apply patch to build latest runc
Browse files Browse the repository at this point in the history
  • Loading branch information
ejose19 committed Feb 23, 2021
1 parent 5cf1422 commit 2c636a1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,19 @@ WORKDIR /app

COPY ../ .

# Temporary patch
RUN if [[ $(uname -m) = "x86_64" ]]; then \
patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \
curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \
bsdtar -C / -xvf "$patched_glibc" && \
sed -i "s/#\(IgnorePkg =\)/\1 glibc/" /etc/pacman.conf && \
rm /usr/include/crypt.h /usr/lib/libcrypt.so; \
fi

RUN echo "keyserver hkp://keyserver.ubuntu.com" >> /etc/pacman.d/gnupg/gpg.conf
RUN sed -i 's/CheckSpace/#CheckSpace/g' /etc/pacman.conf
RUN echo "[options]" >> /etc/pacman.conf
RUN echo "NoExtract = etc/hosts etc/resolv.conf" >> /etc/pacman.conf
RUN pacman -Sy --noconfirm archlinux-keyring
RUN pacman -Su --noconfirm rust
RUN ls -la
Expand Down

0 comments on commit 2c636a1

Please sign in to comment.