Skip to content

Commit d3e2f63

Browse files
committed
disable ipv6
1 parent ab0f13a commit d3e2f63

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

images/centos/scripts/build/configure-environment.sh

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ set_etc_environment_variable "AGENT_TOOLSDIRECTORY" "${AGENT_TOOLSDIRECTORY}"
3333
set_etc_environment_variable "RUNNER_TOOL_CACHE" "${AGENT_TOOLSDIRECTORY}"
3434
chmod -R 777 $AGENT_TOOLSDIRECTORY
3535

36+
# https://github.com/orgs/community/discussions/47563
37+
echo 'net.ipv6.conf.all.disable_ipv6=1' | tee -a /etc/sysctl.conf
38+
echo 'net.ipv6.conf.default.disable_ipv6=1' | tee -a /etc/sysctl.conf
39+
echo 'net.ipv6.conf.lo.disable_ipv6=1' | tee -a /etc/sysctl.conf
40+
3641
# https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
3742
# https://www.suse.com/support/kb/doc/?id=000016692
3843
echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf

images/ubuntu/scripts/build/configure-environment.sh

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ set_etc_environment_variable "AGENT_TOOLSDIRECTORY" "${AGENT_TOOLSDIRECTORY}"
3333
set_etc_environment_variable "RUNNER_TOOL_CACHE" "${AGENT_TOOLSDIRECTORY}"
3434
chmod -R 777 $AGENT_TOOLSDIRECTORY
3535

36+
# https://github.com/orgs/community/discussions/47563
37+
echo 'net.ipv6.conf.all.disable_ipv6=1' | tee -a /etc/sysctl.conf
38+
echo 'net.ipv6.conf.default.disable_ipv6=1' | tee -a /etc/sysctl.conf
39+
echo 'net.ipv6.conf.lo.disable_ipv6=1' | tee -a /etc/sysctl.conf
40+
3641
# https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html
3742
# https://www.suse.com/support/kb/doc/?id=000016692
3843
echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf

0 commit comments

Comments
 (0)