Skip to content

Commit 6aeb686

Browse files
committed
docker: set hard ulimits for docker container
Because of bug in python3-daemon [1] we need to set ulimits inside docker container, otherwise backend and dist-git ooms. [1] - https://bugzilla.redhat.com/show_bug.cgi?id=2307635
1 parent 14faa50 commit 6aeb686

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docker-compose.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@
1414
# 5009:5432 -- PostgreSQL database
1515

1616
version: '3'
17+
18+
# this should be dolved by python3-daemon >= 3.0.0
19+
# https://bugzilla.redhat.com/show_bug.cgi?id=2307635
20+
x-ulimits: &ulimits_settings
21+
ulimits:
22+
nproc: 65535
23+
nofile:
24+
soft: 32767
25+
hard: 65535
26+
27+
1728
services:
1829

1930
# @TODO Probably not all backend services should use the same Dockerfile
@@ -30,6 +41,7 @@ services:
3041
volumes:
3142
- .:/opt/copr:z
3243
- results:/var/lib/copr/public_html/results:z
44+
<<: *ulimits_settings
3345

3446
backend-build:
3547
build:
@@ -43,6 +55,7 @@ services:
4355
volumes:
4456
- .:/opt/copr:z
4557
- results:/var/lib/copr/public_html/results:z
58+
<<: *ulimits_settings
4659

4760
backend-action:
4861
build:
@@ -56,6 +69,7 @@ services:
5669
volumes:
5770
- .:/opt/copr:z
5871
- results:/var/lib/copr/public_html/results:z
72+
<<: *ulimits_settings
5973

6074
resalloc:
6175
build:
@@ -147,6 +161,7 @@ services:
147161
volumes:
148162
- .:/opt/copr:z
149163
- dist-git:/var/lib/dist-git:z
164+
<<: *ulimits_settings
150165

151166
distgit-httpd:
152167
build:
@@ -160,6 +175,7 @@ services:
160175
- .:/opt/copr:z
161176
- dist-git:/var/lib/dist-git:z
162177
command: /usr/sbin/httpd -DFOREGROUND
178+
<<: *ulimits_settings
163179

164180
keygen-signd:
165181
build:

0 commit comments

Comments
 (0)