Skip to content

Commit

Permalink
update packer (#571)
Browse files Browse the repository at this point in the history
* update packer

* add bridge
  • Loading branch information
marcushines authored Nov 6, 2024
1 parent b225c40 commit b25db18
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cloudbuild/external.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ 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
"sudo modprobe br_netfilter",
"sudo echo 1 > /proc/sys/net/bridge/bridge-nf-call-iptables",
"sudo echo 1 > /proc/sys/net/ipv4/ip_forward",
"sudo sysctl --system",
"sudo sysctl -p",
]
}
Expand Down Expand Up @@ -134,7 +138,7 @@ build {
provisioner "shell" {
inline = [
"echo Installing kind...",
"/usr/local/go/bin/go install sigs.k8s.io/kind@v0.22.0",
"/usr/local/go/bin/go install sigs.k8s.io/kind@v0.24.0",
"curl --create-dirs -o third_party/licenses/kind/LICENSE https://raw.githubusercontent.com/kubernetes-sigs/kind/main/LICENSE",
"sudo cp /home/$USER/go/bin/kind /usr/local/bin/",
"/home/$USER/go/bin/kind version",
Expand Down
7 changes: 6 additions & 1 deletion cloudbuild/internal.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ build {
"sudo install -o root -g root -m 0755 cri-dockerd /usr/local/bin/cri-dockerd",
"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",
"sudo sysctl --system",
"sudo sysctl -p",
"sudo systemctl daemon-reload",
"sudo systemctl enable cri-docker.socket",
"sudo systemctl enable cri-docker.service",
Expand All @@ -130,7 +135,7 @@ build {
provisioner "shell" {
inline = [
"echo Installing kind...",
"/usr/local/go/bin/go install sigs.k8s.io/kind@v0.22.0",
"/usr/local/go/bin/go install sigs.k8s.io/kind@v0.24.0",
"sudo cp /home/$USER/go/bin/kind /usr/local/bin/",
"/home/$USER/go/bin/kind version",
]
Expand Down

0 comments on commit b25db18

Please sign in to comment.