From d3e2f63a843ce4f3d0ea2fa7384d80468e859818 Mon Sep 17 00:00:00 2001 From: rahulssv-ibm Date: Thu, 9 Jan 2025 15:05:32 +0530 Subject: [PATCH] disable ipv6 --- images/centos/scripts/build/configure-environment.sh | 5 +++++ images/ubuntu/scripts/build/configure-environment.sh | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/images/centos/scripts/build/configure-environment.sh b/images/centos/scripts/build/configure-environment.sh index edcc91a..cd34eba 100755 --- a/images/centos/scripts/build/configure-environment.sh +++ b/images/centos/scripts/build/configure-environment.sh @@ -33,6 +33,11 @@ set_etc_environment_variable "AGENT_TOOLSDIRECTORY" "${AGENT_TOOLSDIRECTORY}" set_etc_environment_variable "RUNNER_TOOL_CACHE" "${AGENT_TOOLSDIRECTORY}" chmod -R 777 $AGENT_TOOLSDIRECTORY +# https://github.com/orgs/community/discussions/47563 +echo 'net.ipv6.conf.all.disable_ipv6=1' | tee -a /etc/sysctl.conf +echo 'net.ipv6.conf.default.disable_ipv6=1' | tee -a /etc/sysctl.conf +echo 'net.ipv6.conf.lo.disable_ipv6=1' | tee -a /etc/sysctl.conf + # https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html # https://www.suse.com/support/kb/doc/?id=000016692 echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf diff --git a/images/ubuntu/scripts/build/configure-environment.sh b/images/ubuntu/scripts/build/configure-environment.sh index 939be98..5d6f09e 100755 --- a/images/ubuntu/scripts/build/configure-environment.sh +++ b/images/ubuntu/scripts/build/configure-environment.sh @@ -33,6 +33,11 @@ set_etc_environment_variable "AGENT_TOOLSDIRECTORY" "${AGENT_TOOLSDIRECTORY}" set_etc_environment_variable "RUNNER_TOOL_CACHE" "${AGENT_TOOLSDIRECTORY}" chmod -R 777 $AGENT_TOOLSDIRECTORY +# https://github.com/orgs/community/discussions/47563 +echo 'net.ipv6.conf.all.disable_ipv6=1' | tee -a /etc/sysctl.conf +echo 'net.ipv6.conf.default.disable_ipv6=1' | tee -a /etc/sysctl.conf +echo 'net.ipv6.conf.lo.disable_ipv6=1' | tee -a /etc/sysctl.conf + # https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html # https://www.suse.com/support/kb/doc/?id=000016692 echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf