From ca4e5532c458aa330b8e8802744a0923c49fe496 Mon Sep 17 00:00:00 2001 From: niansa Date: Sun, 10 Mar 2024 22:53:02 +0100 Subject: [PATCH] Increased max open file limit for Windows CI --- .gitlab-ci.yml | 2 +- windows.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5180c51..885bb3f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,5 +18,5 @@ build windows x64: - docker:dind script: - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER $CI_REGISTRY --password-stdin - - docker build -f Dockerfile-windows -t ${CI_REGISTRY_IMAGE}:windows-x64 . + - docker build --ulimit nofile=5000:5000 -f Dockerfile-windows -t ${CI_REGISTRY_IMAGE}:windows-x64 . - docker push ${CI_REGISTRY_IMAGE}:windows-x64 diff --git a/windows.sh b/windows.sh index bf932a0..177e556 100755 --- a/windows.sh +++ b/windows.sh @@ -12,6 +12,11 @@ function min { # Leave wineserver running in the background setsid wineserver -p -f & +# Increase open file limit +echo " --- Increasing max. open file limit" +ulimit -n 5120 + + # Install tools echo " --- Installing tools" cd ~/.wine/drive_c/Program\ Files/