Skip to content

Commit

Permalink
Always enable br_netfilter on VM builds (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdeep-hundal authored Jan 21, 2025
1 parent 7c6ae73 commit 0d40cc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cloudbuild/external.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ build {
"echo \"fs.inotify.max_user_watches=25600000\" | sudo tee -a /etc/sysctl.conf", # configure inotify for cisco xrd containers
"echo \"fs.inotify.max_queued_events=13107200\" | sudo tee -a /etc/sysctl.conf", # configure inotify for cisco xrd containers
"echo \"kernel.pid_max=1048575\" | sudo tee -a /etc/sysctl.conf", # configure pid_max for cisco 8000e containers
"echo \"br_netfilter\" | sudo tee -a /etc/modules-load.d/br_netfilter.conf", # ensure br_netfilter module is loaded instead of relying on docker-ce (https://github.com/moby/moby/issues/48948)
"sudo modprobe br_netfilter",
"echo \"1\" > sudo tee /proc/sys/net/bridge/bridge-nf-call-iptables",
"echo \"1\" > sudo tee /proc/sys/net/ipv4/ip_forward",
Expand Down
1 change: 1 addition & 0 deletions cloudbuild/internal.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ build {
"echo \"fs.inotify.max_user_watches=25600000\" | sudo tee -a /etc/sysctl.conf", # configure inotify for cisco xrd containers
"echo \"fs.inotify.max_queued_events=13107200\" | sudo tee -a /etc/sysctl.conf", # configure inotify for cisco xrd containers
"echo \"kernel.pid_max=1048575\" | sudo tee -a /etc/sysctl.conf", # configure pid_max for cisco 8000e containers
"echo \"br_netfilter\" | sudo tee -a /etc/modules-load.d/br_netfilter.conf", # ensure br_netfilter module is loaded instead of relying on docker-ce (https://github.com/moby/moby/issues/48948)
"sudo sysctl -p",
"echo Pulling containers...",
"gcloud auth configure-docker us-west1-docker.pkg.dev -q", # configure sudoless docker
Expand Down

0 comments on commit 0d40cc3

Please sign in to comment.