Skip to content

Commit

Permalink
update ubuntu 20.04 LTS base image
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmasi committed Sep 21, 2023
1 parent 6ecdf26 commit 060b870
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions cloudbuild/external.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ variable "build_id" {
}

variable "zone" {
type = string
type = string
default = "us-central1-b"
}

source "googlecompute" "kne-image" {
project_id = "gep-kne"
source_image = "ubuntu-2004-focal-v20210927"
disk_size = 50
image_name = "kne-external-${var.build_id}"
image_family = "kne-external-untested"
project_id = "gep-kne"
source_image_family = "ubuntu-2004-lts"
disk_size = 50
image_name = "kne-external-${var.build_id}"
image_family = "kne-external-untested"
image_labels = {
"kne_gh_commit_sha" : "${var.short_sha}",
"kne_gh_branch_name" : "${var.branch_name}",
Expand Down Expand Up @@ -71,9 +71,9 @@ build {
"sudo apt-get -o DPkg::Lock::Timeout=60 install docker-ce docker-ce-cli containerd.io build-essential -y",
"sudo usermod -aG docker $USER",
"sudo docker version",
"sudo apt-get -o DPkg::Lock::Timeout=60 install openvswitch-switch-dpdk -y", # install openvswitch for cisco containers
"sudo apt-get -o DPkg::Lock::Timeout=60 install openvswitch-switch-dpdk -y", # install openvswitch for cisco containers
"echo \"fs.inotify.max_user_instances=64000\" | sudo tee -a /etc/sysctl.conf", # configure inotify for cisco containers
"echo \"kernel.pid_max=1048575\" | sudo tee -a /etc/sysctl.conf", # configure pid_max for cisco containers
"echo \"kernel.pid_max=1048575\" | sudo tee -a /etc/sysctl.conf", # configure pid_max for cisco containers
"sudo sysctl -p",
]
}
Expand Down
18 changes: 9 additions & 9 deletions cloudbuild/internal.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ variable "build_id" {
}

variable "zone" {
type = string
type = string
default = "us-central1-b"
}

source "googlecompute" "kne-image" {
project_id = "gep-kne"
source_image = "ubuntu-2004-focal-v20210927"
disk_size = 50
image_name = "kne-${var.build_id}"
image_family = "kne-untested"
project_id = "gep-kne"
source_image_family = "ubuntu-2004-lts"
disk_size = 50
image_name = "kne-${var.build_id}"
image_family = "kne-untested"
image_labels = {
"kne_gh_commit_sha" : "${var.short_sha}",
"kne_gh_branch_name" : "${var.branch_name}",
Expand Down Expand Up @@ -71,12 +71,12 @@ build {
"sudo apt-get -o DPkg::Lock::Timeout=60 install docker-ce docker-ce-cli containerd.io build-essential -y",
"sudo usermod -aG docker $USER",
"sudo docker version",
"sudo apt-get -o DPkg::Lock::Timeout=60 install openvswitch-switch-dpdk -y", # install openvswitch for cisco containers
"sudo apt-get -o DPkg::Lock::Timeout=60 install openvswitch-switch-dpdk -y", # install openvswitch for cisco containers
"echo \"fs.inotify.max_user_instances=64000\" | sudo tee -a /etc/sysctl.conf", # configure inotify for cisco containers
"echo \"kernel.pid_max=1048575\" | sudo tee -a /etc/sysctl.conf", # configure pid_max for cisco containers
"echo \"kernel.pid_max=1048575\" | sudo tee -a /etc/sysctl.conf", # configure pid_max for cisco containers
"sudo sysctl -p",
"echo Pulling containers...",
"gcloud auth configure-docker us-west1-docker.pkg.dev -q", # configure sudoless docker
"gcloud auth configure-docker us-west1-docker.pkg.dev -q", # configure sudoless docker
"sudo gcloud auth configure-docker us-west1-docker.pkg.dev -q", # configure docker with sudo
"sudo docker pull us-west1-docker.pkg.dev/gep-kne/arista/ceos:ga",
"sudo docker pull us-west1-docker.pkg.dev/gep-kne/cisco/xrd:ga",
Expand Down

0 comments on commit 060b870

Please sign in to comment.