Skip to content

Commit

Permalink
disable ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulssv-ibm committed Jan 9, 2025
1 parent ab0f13a commit d3e2f63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions images/centos/scripts/build/configure-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions images/ubuntu/scripts/build/configure-environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3e2f63

Please sign in to comment.