diff --git a/indexer/deb/debian/postinst b/indexer/deb/debian/postinst index 14822d5cef..4d099559aa 100644 --- a/indexer/deb/debian/postinst +++ b/indexer/deb/debian/postinst @@ -66,8 +66,13 @@ if [ -z "$2" ]; then echo "-Djava.security.policy=file:///usr/share/wazuh-indexer/plugins/opendistro-performance-analyzer/pa_config/es_security.policy" >> /etc/wazuh-indexer/jvm.options # --------------------------------------------------------------------------- - sysctl -w vm.max_map_count=262144 > /dev/null 2>&1 - ulimit -Hn 65535 > /dev/null 2>&1 + + echo "${USER} hard nproc 4096" >> /etc/security/limits.conf + echo "${USER} soft nproc 4096" >> /etc/security/limits.conf + echo "${USER} hard nofile 65535" >> /etc/security/limits.conf + echo "${USER} soft nofile 65535" >> /etc/security/limits.conf + + sysctl -w vm.max_map_count=262144 > /dev/null 2>&1 if command -v sudo > /dev/null 2>&1; then sudo -u ${USER} CLK_TK=`getconf CLK_TCK` OPENSEARCH_PATH_CONF=${CONFIG_DIR} ${INSTALLATION_DIR}/bin/opensearch --quiet > /dev/null 2>&1 & diff --git a/indexer/deb/debian/rules b/indexer/deb/debian/rules index 6326c077b4..d06a341dc8 100644 --- a/indexer/deb/debian/rules +++ b/indexer/deb/debian/rules @@ -127,7 +127,7 @@ override_dh_install: # ----------------------------------------------------------------------------- override_dh_strip: - dh_strip --no-automatic-dbgsym + dh_strip # ----------------------------------------------------------------------------- diff --git a/indexer/deb/docker/amd64/Dockerfile b/indexer/deb/docker/amd64/Dockerfile index b7149bdc8b..6edf9beae2 100644 --- a/indexer/deb/docker/amd64/Dockerfile +++ b/indexer/deb/docker/amd64/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:16.04 +FROM debian:8 ENV DEBIAN_FRONTEND noninteractive