From 48bc1852f4300fccfe34744094f25816add5f18f Mon Sep 17 00:00:00 2001 From: Jono Hill Date: Sat, 20 Nov 2021 16:17:47 +1300 Subject: [PATCH] Set max map count --- box/bootstrap.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/box/bootstrap.sh b/box/bootstrap.sh index d508ee0..4066c91 100644 --- a/box/bootstrap.sh +++ b/box/bootstrap.sh @@ -114,8 +114,11 @@ set_user_password '${user_password}' set_ssh_host_key '${ssh_host_key}' '${ssh_host_key_pub}' '${ssh_host_key_cert}' # shellcheck disable=SC2016 set_ssh_key '${ssh_key}' + +echo "vm.max_map_count=262144" >/etc/sysctl.conf ensure_data_vol ensure_docker ensure_sops + # shellcheck disable=SC2016 compose_up '${compose_repo}' '${compose_sops_key}'