From 8cf3b23b288cb31e0cb5e79f8aa784c5d007d912 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 13 Nov 2023 01:14:05 +0100 Subject: [PATCH] Set ulimit -n 1024 for makepkg calls. See https://github.com/moby/moby/issues/27195#issuecomment-1410745778. --- icedreammusic/ndi-feeder/Dockerfile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/icedreammusic/ndi-feeder/Dockerfile b/icedreammusic/ndi-feeder/Dockerfile index 5a7e4ae..0931d30 100644 --- a/icedreammusic/ndi-feeder/Dockerfile +++ b/icedreammusic/ndi-feeder/Dockerfile @@ -110,12 +110,14 @@ RUN cp -v "$GOPATH"/bin/* /usr/local/bin FROM base-devel AS yay +# NOTE - for why we do `ulimit -n 1024` see https://github.com/moby/moby/issues/27195#issuecomment-1410745778 + WORKDIR /usr/src/yay RUN git clone --recursive https://aur.archlinux.org/yay.git . RUN \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/tmp/build/.cache \ - makepkg -sr --noconfirm --nocheck + ulimit -n 1024 && makepkg -sr --noconfirm --nocheck ### # BASE DEVEL (YAY) @@ -144,7 +146,7 @@ RUN \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/tmp/build/.cache \ (. ./PKGBUILD && yay -S --noconfirm --asdeps --provides --needed $(yay -T "${depends[@]}") && (mv -v ~/.cache/yay/*/*.pkg.* . || true)) -RUN makepkg -sr --noconfirm +RUN ulimit -n 1024 && makepkg -sr --noconfirm ### # NDI-SDK-EMBEDDED @@ -159,7 +161,7 @@ RUN \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/tmp/build/.cache \ (. ./PKGBUILD && yay -S --noconfirm --asdeps --provides --needed $(yay -T "${depends[@]}") && (mv -v ~/.cache/yay/*/*.pkg.* . || true)) -RUN makepkg -sr --noconfirm +RUN ulimit -n 1024 && makepkg -sr --noconfirm ### # NDI-SDK @@ -180,7 +182,7 @@ RUN \ RUN \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/tmp/build/.cache \ - makepkg -sr --noconfirm + ulimit -n 1024 && makepkg -sr --noconfirm ### # NDI-ADVANCED-SDK @@ -201,7 +203,7 @@ RUN \ RUN \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/tmp/build/.cache \ - makepkg -sr --noconfirm + ulimit -n 1024 && makepkg -sr --noconfirm ### # FFMPEG-NDI @@ -247,7 +249,7 @@ RUN \ RUN \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/tmp/build/.cache \ - makepkg -sr --noconfirm --nocheck + ulimit -n 1024 && makepkg -sr --noconfirm --nocheck ### # PERMISSIONS FOR FINAL IMAGE FILES