From 42040917f75472e1f576a7f35d959dbbe4937104 Mon Sep 17 00:00:00 2001 From: Guo-shiuan Wang Date: Tue, 19 Nov 2024 14:22:53 -0800 Subject: [PATCH] Add repo. --- cloudbuild/external.pkr.hcl | 1 + cloudbuild/internal.pkr.hcl | 1 + 2 files changed, 2 insertions(+) diff --git a/cloudbuild/external.pkr.hcl b/cloudbuild/external.pkr.hcl index 4292143c..1fdc015c 100644 --- a/cloudbuild/external.pkr.hcl +++ b/cloudbuild/external.pkr.hcl @@ -68,6 +68,7 @@ build { "sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y", "curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg", "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable\" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null", + "sudo glinux-add-repo docker-ce-"$(lsb_release -cs)"", "sudo apt-get update", "sudo apt-get install docker-ce=27.2.1 docker-ce-cli=27.2.1 containerd.io=1.7.22 build-essential -y", "sudo usermod -aG docker $USER", diff --git a/cloudbuild/internal.pkr.hcl b/cloudbuild/internal.pkr.hcl index 893f347d..7df8e0a6 100644 --- a/cloudbuild/internal.pkr.hcl +++ b/cloudbuild/internal.pkr.hcl @@ -68,6 +68,7 @@ build { "sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y", "curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg", "echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable\" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null", + "sudo glinux-add-repo docker-ce-"$(lsb_release -cs)"", "sudo apt-get update", "sudo apt-get install docker-ce=27.2.1 docker-ce-cli=27.2.1 containerd.io=1.7.22 build-essential -y", "sudo usermod -aG docker $USER",