From 1c51a65d25db90283c2c0bf3c639855d082e32ce Mon Sep 17 00:00:00 2001 From: Roman Gershman Date: Tue, 7 Jun 2022 14:33:55 +0300 Subject: [PATCH] feat(docker): try increasing a memlock limit in the container (#114) feat(docker): try increasing a memlock limit in DF container. This should solve the awkward command overrides in K8S scripts. Fixes #57. --- tools/docker/entrypoint.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/docker/entrypoint.sh b/tools/docker/entrypoint.sh index 660e46ec5..618b2eb60 100755 --- a/tools/docker/entrypoint.sh +++ b/tools/docker/entrypoint.sh @@ -1,5 +1,11 @@ #!/bin/sh +# This is important in order to provide enough locked memory to dragonfly +# when running on kernels < 5.12. +# This line should reside before `set -e` so it could fail silently +# in case the container runs in non-privileged mode. +ulimit -l 65000 2> /dev/null + set -e # first arg is `-some-option`