Skip to content
Snippets Groups Projects
Commit 1567463f authored by Jan David Mol's avatar Jan David Mol
Browse files

Use proc fs to access sysctl values, to be able to query whether the variables...

Use proc fs to access sysctl values, to be able to query whether the variables we want to write are exposed and writable at all.
parent 61e5c959
No related branches found
No related tags found
1 merge request!7Resolve #2021 "03 16 branched from master elk stack"
FROM ubuntu:20.04
# Expand VM settings as required by ELK
CMD bash -c "if test $(sysctl -n vm.max_map_count) -lt 262144; then sysctl -w vm.max_map_count=262144; fi"
CMD bash -c "if [ -w /proc/sys/vm/max_map_count ] && [ $(cat /proc/sys/vm/max_map_count) -lt 262144 ]; then echo 262144 > /proc/sys/vm/max_map_count; fi"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment