1
0
Fork 0
Icedream 2023-11-13 01:14:05 +01:00
parent 426012838f
commit 8cf3b23b28
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 8 additions and 6 deletions

View File

@ -110,12 +110,14 @@ RUN cp -v "$GOPATH"/bin/* /usr/local/bin
FROM base-devel AS yay 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 WORKDIR /usr/src/yay
RUN git clone --recursive https://aur.archlinux.org/yay.git . RUN git clone --recursive https://aur.archlinux.org/yay.git .
RUN \ RUN \
--mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \
--mount=type=cache,target=/tmp/build/.cache \ --mount=type=cache,target=/tmp/build/.cache \
makepkg -sr --noconfirm --nocheck ulimit -n 1024 && makepkg -sr --noconfirm --nocheck
### ###
# BASE DEVEL (YAY) # BASE DEVEL (YAY)
@ -144,7 +146,7 @@ RUN \
--mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \
--mount=type=cache,target=/tmp/build/.cache \ --mount=type=cache,target=/tmp/build/.cache \
(. ./PKGBUILD && yay -S --noconfirm --asdeps --provides --needed $(yay -T "${depends[@]}") && (mv -v ~/.cache/yay/*/*.pkg.* . || true)) (. ./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 # NDI-SDK-EMBEDDED
@ -159,7 +161,7 @@ RUN \
--mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \
--mount=type=cache,target=/tmp/build/.cache \ --mount=type=cache,target=/tmp/build/.cache \
(. ./PKGBUILD && yay -S --noconfirm --asdeps --provides --needed $(yay -T "${depends[@]}") && (mv -v ~/.cache/yay/*/*.pkg.* . || true)) (. ./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 # NDI-SDK
@ -180,7 +182,7 @@ RUN \
RUN \ RUN \
--mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \
--mount=type=cache,target=/tmp/build/.cache \ --mount=type=cache,target=/tmp/build/.cache \
makepkg -sr --noconfirm ulimit -n 1024 && makepkg -sr --noconfirm
### ###
# NDI-ADVANCED-SDK # NDI-ADVANCED-SDK
@ -201,7 +203,7 @@ RUN \
RUN \ RUN \
--mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \
--mount=type=cache,target=/tmp/build/.cache \ --mount=type=cache,target=/tmp/build/.cache \
makepkg -sr --noconfirm ulimit -n 1024 && makepkg -sr --noconfirm
### ###
# FFMPEG-NDI # FFMPEG-NDI
@ -247,7 +249,7 @@ RUN \
RUN \ RUN \
--mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \ --mount=type=cache,target=/var/cache/pacman/pkg,sharing=locked \
--mount=type=cache,target=/tmp/build/.cache \ --mount=type=cache,target=/tmp/build/.cache \
makepkg -sr --noconfirm --nocheck ulimit -n 1024 && makepkg -sr --noconfirm --nocheck
### ###
# PERMISSIONS FOR FINAL IMAGE FILES # PERMISSIONS FOR FINAL IMAGE FILES