Skip to content

Commit

Permalink
feature: raise open files limit back to ubuntu v20 values
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Bösing <[email protected]>
  • Loading branch information
boesing committed Dec 16, 2022
1 parent 3033a6e commit 0c9cf69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -263,4 +263,8 @@ COPY setup/phpunit/problem-matcher.json /etc/laminas-ci/problem-matcher/phpunit.

RUN useradd -ms /bin/bash testuser

# Copy ubuntu setup
COPY setup/ubuntu /
RUN test 1048576 -eq $(sudo --preserve-env --set-home -u testuser /bin/bash -c ulimit -n) || (echo "Maximum open file limit is not configured properly" && exit 255)

ENTRYPOINT ["entrypoint.sh"]
2 changes: 2 additions & 0 deletions setup/ubuntu/etc/security/limits.d/testuser.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
testuser soft nofile 1048576
testuser hard nofile 1048576

0 comments on commit 0c9cf69

Please sign in to comment.