diff --git a/install-dependencies.sh b/install-dependencies.sh index 66a47446cf..a2b9c25641 100755 --- a/install-dependencies.sh +++ b/install-dependencies.sh @@ -132,6 +132,9 @@ fedora_packages=( fipscheck cpp-jwt-devel + podman + buildah + https://github.com/scylladb/cassandra-stress/releases/download/v3.17.5/cassandra-stress-3.17.5-1.noarch.rpm ) diff --git a/tools/toolchain/Dockerfile b/tools/toolchain/Dockerfile index 3d8d11b5cd..1cfc3df0d0 100644 --- a/tools/toolchain/Dockerfile +++ b/tools/toolchain/Dockerfile @@ -4,6 +4,7 @@ ARG CLANG_BUILD="SKIP" ARG CLANG_ARCHIVES WORKDIR /mnt +RUN echo install_weak_deps=False >> /etc/dnf/dnf.conf RUN dnf -y update \ && dnf -y install 'dnf-command(copr)' \ && dnf -y install ccache \ diff --git a/tools/toolchain/dbuild b/tools/toolchain/dbuild index ebdd0df23a..5fabe6b1e5 100755 --- a/tools/toolchain/dbuild +++ b/tools/toolchain/dbuild @@ -32,6 +32,7 @@ here="$(realpath $(dirname "$0"))" toplevel="$(realpath "$here/../..")" group_args=() docker_args=() +tmpfiles=() image="$(<"$here/image")" for gid in $(id -G); do @@ -161,8 +162,22 @@ else # --pids-limit is not supported on podman with cgroupsv1 # detection code from # https://unix.stackexchange.com/questions/617764/how-do-i-check-if-system-is-using-cgroupv1 + containers_conf="$(mktemp)" + tmpfiles+=("$containers_conf") + cat > "$containers_conf" <