From e9f8036e3e66ee875ba589e83684bfbf43665b24 Mon Sep 17 00:00:00 2001 From: Joe Wang Date: Tue, 17 Dec 2024 10:42:29 -0500 Subject: [PATCH] install docker --- ...dbuild-library-generation-integration-test.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.cloudbuild/library_generation/cloudbuild-library-generation-integration-test.yaml b/.cloudbuild/library_generation/cloudbuild-library-generation-integration-test.yaml index 06c756649f..7c73fbe358 100644 --- a/.cloudbuild/library_generation/cloudbuild-library-generation-integration-test.yaml +++ b/.cloudbuild/library_generation/cloudbuild-library-generation-integration-test.yaml @@ -30,14 +30,24 @@ steps: id: library-generation-build waitFor: ["-"] -- name: python:3.13.1 +- name: ubuntu:25.04 entrypoint: bash args: - "-c" - | apt-get update - apt-get -y install maven + apt-get -y install maven sudo ca-certificates curl + # Install docker, see https://docs.docker.com/engine/install/debian/#install-using-the-repository + sudo install -m 0755 -d /etc/apt/keyrings + curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc + chmod a+r /etc/apt/keyrings/docker.asc + # Add the repository to Apt sources: + echo \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ + $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ + sudo tee /etc/apt/sources.list.d/docker.list > /dev/null apt-get -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin + # Install python dependencies pip install --upgrade pip pip install --require-hashes -r hermetic_build/common/requirements.txt pip install hermetic_build/common