From 11f9c668bc44cae6981b174f6af9a2b33c573d69 Mon Sep 17 00:00:00 2001 From: guoshiuan Date: Wed, 18 Dec 2024 15:15:39 -0800 Subject: [PATCH] Revise the cloud build script. (#583) Revise the cloud build scriptwq./third_party/openconfig/kne/internal/copybara.sh --- cloudbuild/external.pkr.hcl | 4 ++-- cloudbuild/internal.pkr.hcl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cloudbuild/external.pkr.hcl b/cloudbuild/external.pkr.hcl index 9441074b..d6a0d3cd 100644 --- a/cloudbuild/external.pkr.hcl +++ b/cloudbuild/external.pkr.hcl @@ -78,8 +78,8 @@ build { "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 "sudo modprobe br_netfilter", - "sudo echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables", - "sudo echo 1 > /proc/sys/net/ipv4/ip_forward", + "echo \"1\" > sudo tee /proc/sys/net/bridge/bridge-nf-call-iptables", + "echo \"1\" > sudo tee /proc/sys/net/ipv4/ip_forward", "sudo sysctl --system", "sudo sysctl -p", ] diff --git a/cloudbuild/internal.pkr.hcl b/cloudbuild/internal.pkr.hcl index 912d0d15..0b982feb 100644 --- a/cloudbuild/internal.pkr.hcl +++ b/cloudbuild/internal.pkr.hcl @@ -115,8 +115,8 @@ build { "sudo install packaging/systemd/* /etc/systemd/system", "sudo sed -i -e 's,/usr/bin/cri-dockerd,/usr/local/bin/cri-dockerd,' /etc/systemd/system/cri-docker.service", "sudo modprobe br_netfilter", - "sudo echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables", - "sudo echo 1 > /proc/sys/net/ipv4/ip_forward", + "echo \"1\" > sudo tee /proc/sys/net/bridge/bridge-nf-call-iptables", + "echo \"1\" > sudo tee /proc/sys/net/ipv4/ip_forward", "sudo sysctl --system", "sudo sysctl -p", "sudo systemctl daemon-reload",