From 82c3524099bd2838c1c5e69fd15b2d33fd5f32ce Mon Sep 17 00:00:00 2001 From: "lei.tian" Date: Sun, 23 Apr 2023 19:34:51 +0800 Subject: [PATCH] fix sysctl.conf --- 6/Dockerfile | 3 +-- 7/Dockerfile | 3 +-- 8/Dockerfile | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/6/Dockerfile b/6/Dockerfile index e354c0d..1f19b2e 100644 --- a/6/Dockerfile +++ b/6/Dockerfile @@ -27,8 +27,7 @@ RUN set -eux \ && printf "* soft nofile 65536\n* hard nofile 65536\n" >> /etc/security/limits.conf \ && printf "elasticsearch soft memlock unlimited\nelasticsearch hard memlock unlimited\n" >> /etc/security/limits.conf \ ## set sysctl.conf - && printf "vm.max_map_count=262144" >> /etc/sysctl.conf \ - && printf "fs.file-max=65536" >> /etc/sysctl.conf \ + && printf "vm.max_map_count=262144\nfs.file-max=65536" >> /etc/sysctl.conf \ ## Install plugin && cd /usr/share/elasticsearch/bin \ && ./elasticsearch-plugin install -b "https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v${PLUGIN_VERSION}/elasticsearch-analysis-ik-${PLUGIN_VERSION}.zip" \ diff --git a/7/Dockerfile b/7/Dockerfile index f1f409e..02770eb 100644 --- a/7/Dockerfile +++ b/7/Dockerfile @@ -27,8 +27,7 @@ RUN set -eux \ && printf "* soft nofile 65536\n* hard nofile 65536\n" >> /etc/security/limits.conf \ && printf "elasticsearch soft memlock unlimited\nelasticsearch hard memlock unlimited\n" >> /etc/security/limits.conf \ ## set sysctl.conf - && printf "vm.max_map_count=262144" >> /etc/sysctl.conf \ - && printf "fs.file-max=65536" >> /etc/sysctl.conf \ + && printf "vm.max_map_count=262144\nfs.file-max=65536" >> /etc/sysctl.conf \ ## Install plugin && cd /usr/share/elasticsearch/bin \ && ./elasticsearch-plugin install -b "https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v${PLUGIN_VERSION}/elasticsearch-analysis-ik-${PLUGIN_VERSION}.zip" \ diff --git a/8/Dockerfile b/8/Dockerfile index d9594f1..769f7ba 100644 --- a/8/Dockerfile +++ b/8/Dockerfile @@ -27,8 +27,7 @@ RUN set -eux \ && printf "* soft nofile 65536\n* hard nofile 65536\n" >> /etc/security/limits.conf \ && printf "elasticsearch soft memlock unlimited\nelasticsearch hard memlock unlimited\n" >> /etc/security/limits.conf \ ## set sysctl.conf - && printf "vm.max_map_count=262144" >> /etc/sysctl.conf \ - && printf "fs.file-max=65536" >> /etc/sysctl.conf \ + && printf "vm.max_map_count=262144\nfs.file-max=65536" >> /etc/sysctl.conf \ ## Install plugin && cd /usr/share/elasticsearch/bin \ && ./elasticsearch-plugin install -b "https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v${PLUGIN_VERSION}/elasticsearch-analysis-ik-${PLUGIN_VERSION}.zip" \