mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
ci: build and install libpathrs
libpathrs will be opt-out in a future patch so we need to test with it in our CI. Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -eux -o pipefail
|
||||
DNF=(dnf -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs --exclude="kernel,kernel-core")
|
||||
RPMS=(bats git-core glibc-static golang jq libseccomp-devel make)
|
||||
RPMS=(bats git-core glibc-static golang jq libseccomp-devel cargo lld make wget)
|
||||
# Work around dnf mirror failures by retrying a few times.
|
||||
for i in $(seq 0 2); do
|
||||
sleep "$i"
|
||||
@@ -16,11 +16,16 @@ fi
|
||||
|
||||
dnf clean all
|
||||
|
||||
SCRIPTDIR="$(dirname "${BASH_SOURCE[0]}")"
|
||||
|
||||
LIBPATHRS_VERSION="0.2.4"
|
||||
"$SCRIPTDIR"/build-libpathrs.sh "$LIBPATHRS_VERSION" /usr
|
||||
|
||||
# To avoid "avc: denied { nosuid_transition }" from SELinux as we run tests on /tmp.
|
||||
mount -o remount,suid /tmp
|
||||
|
||||
# Setup rootless user.
|
||||
"$(dirname "${BASH_SOURCE[0]}")"/setup_rootless.sh
|
||||
"$SCRIPTDIR"/setup_rootless.sh
|
||||
|
||||
# Delegate cgroup v2 controllers to rootless user via --systemd-cgroup
|
||||
mkdir -p /etc/systemd/system/user@.service.d
|
||||
|
||||
Reference in New Issue
Block a user