Skip to content

Commit

Permalink
Progess on #3: Added memory limits
Browse files Browse the repository at this point in the history
  • Loading branch information
nikidimi committed Oct 27, 2016
1 parent dc03aa3 commit f6ba5bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions django/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ def __init__(self, docker_image, input_file):
stdin_open=True,
host_config=self.cli.create_host_config(
binds=[input_file + ":/mnt/input"],
privileged=False,
network_mode='none',
mem_limit="100M",
memswap_limit="100M",
shm_size="100M",
pids_limit=100,
)
)

Expand Down

0 comments on commit f6ba5bf

Please sign in to comment.