ci: add workaround for archlinux/docker issue
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
WORKAROUND for glibc 2.33 and old Docker
refs:
* 478e4de7bd
* https://github.com/actions/virtual-environments/issues/2658
* https://github.com/lxqt/lxqt-panel/pull/1562
This commit is contained in:
parent
5745925945
commit
bd4c5abe4d
11
Dockerfile
11
Dockerfile
@ -10,8 +10,17 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||||||
org.label-schema.vcs-ref=$VCS_REF \
|
org.label-schema.vcs-ref=$VCS_REF \
|
||||||
org.label-schema.license=GPL-3.0
|
org.label-schema.license=GPL-3.0
|
||||||
|
|
||||||
|
# WORKAROUND for glibc 2.33 and old Docker
|
||||||
|
# See https://github.com/actions/virtual-environments/issues/2658
|
||||||
|
# Thanks to https://github.com/lxqt/lxqt-panel/pull/1562
|
||||||
|
ENV patched_glibc glibc-linux4-2.33-4-x86_64.pkg.tar.zst
|
||||||
|
RUN curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \
|
||||||
|
bsdtar -C / -xvf "$patched_glibc"
|
||||||
|
RUN pacman --version
|
||||||
|
|
||||||
WORKDIR /tmp/
|
WORKDIR /tmp/
|
||||||
RUN pacman -Syu --noconfirm --needed && pacman --noconfirm -R $(pacman -Qdtq) || true
|
RUN pacman -Syu --ignore glibc --noconfirm --needed
|
||||||
|
RUN pacman --noconfirm -Rn $(pacman -Qdtq) || true
|
||||||
RUN pacman -Scc && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \
|
RUN pacman -Scc && rm -rfv /var/cache/pacman/* /var/lib/pacman/sync/* \
|
||||||
rm -rv /tmp/* || true
|
rm -rv /tmp/* || true
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
Loading…
Reference in New Issue
Block a user