mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
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.
This commit is contained in:
parent
62b6ae48c0
commit
1c51a65d25
1 changed files with 6 additions and 0 deletions
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue