From ab232e66b6a2ebfc13da40fe47a4a0276200b091 Mon Sep 17 00:00:00 2001
From: Sven Feyerabend <Sven.Feyerabend@stuvus.uni-stuttgart.de>
Date: Tue, 25 May 2021 18:17:40 +0200
Subject: [PATCH] debug(CI): print limits from Dockerfile

---
 .gitlab-ci.yml | 2 +-
 Dockerfile     | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6371814..2f317a4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,7 +17,7 @@ before_script:
   - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
   - source environment
   - ulimit -n 999999
-  - ulimit
+  - ulimit -n
   - lsof | wc -l
   - sysctl fs.file-max
  # - docker pull "$CI_REGISTRY_IMAGE" || true
diff --git a/Dockerfile b/Dockerfile
index 8408b39..068db3a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,6 +4,7 @@ FROM nixpkgs/curl as src
 ARG LDAP_PLUGIN_URL=https://codeload.github.com/smhaller/ldap-overleaf-sl/tar.gz/master
 RUN mkdir /src && cd /src && curl "$LDAP_PLUGIN_URL" | tar -xzf - --strip-components=1
 RUN ls /src
+RUN lsof |wc -l && ulimit
 
 FROM $BASE
 
-- 
GitLab