Ver código fonte

Merge pull request #19630 from overleaf/jpa-leaner-ldap-pod

[server-pro] tests: import workaround for large memory allocation

GitOrigin-RevId: d739821153b5e29fb20e468796f655859428869b
Jakob Ackermann 2 anos atrás
pai
commit
bd2a99aca7
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      server-ce/test/docker-compose.yml

+ 7 - 0
server-ce/test/docker-compose.yml

@@ -124,3 +124,10 @@ services:
   ldap:
     restart: always
     image: rroemhild/test-openldap:1.1
+    # Workaround large memory allocation (using the max-open-files-limit as socket buffer scale).
+    # REF: https://github.com/moby/moby/issues/8231#issuecomment-63877553
+    # REF: https://github.com/moby/moby/issues/8231#issuecomment-63871343
+    command:
+      - 'bash'
+      - '-c'
+      - 'ulimit -n 1024 && exec bash /run.sh'