Skip to content

Commit

Permalink
fix sysctl.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
chinayin committed Apr 23, 2023
1 parent b569309 commit 82c3524
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions 6/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
3 changes: 1 addition & 2 deletions 7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down
3 changes: 1 addition & 2 deletions 8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" \
Expand Down

0 comments on commit 82c3524

Please sign in to comment.