From 80b7abf2854e0131ed062bea925b8395c272416b Mon Sep 17 00:00:00 2001 From: gurusai-voleti Date: Fri, 9 Jan 2026 09:47:31 +0000 Subject: [PATCH] chore: Migrate gsutil usage to gcloud storage --- .../build-centos-image/batch_centos_image_packages.sh | 2 +- .../build-debian-image/batch_debian_image_packages.sh | 2 +- .../build-hpc-centos-image/batch_hpc_centos_image_packages.sh | 2 +- .../build-hpc-rocky-image/batch_hpc_rocky_image_packages.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build-custom-image/build-centos-image/batch_centos_image_packages.sh b/build-custom-image/build-centos-image/batch_centos_image_packages.sh index 4a401f3..88cfa01 100644 --- a/build-custom-image/build-centos-image/batch_centos_image_packages.sh +++ b/build-custom-image/build-centos-image/batch_centos_image_packages.sh @@ -17,7 +17,7 @@ function install_docker_requirements() { # Install docker credential helper. yum install -y python3 || exit_error "python3 installation failed." MACHINE="$(uname -m)" - CLOUDSDK_PYTHON=/usr/bin/python3 gsutil cp gs://batch-agent-prod-us/docker-credential-gcr-tool/docker-credential-gcr-"$MACHINE".tar.gz docker-credential-gcr.tar.gz + CLOUDSDK_PYTHON=/usr/bin/python3 gcloud storage cp gs://batch-agent-prod-us/docker-credential-gcr-tool/docker-credential-gcr-"$MACHINE".tar.gz docker-credential-gcr.tar.gz tar -xzf docker-credential-gcr.tar.gz chmod +x docker-credential-gcr cp docker-credential-gcr /usr/bin/ diff --git a/build-custom-image/build-debian-image/batch_debian_image_packages.sh b/build-custom-image/build-debian-image/batch_debian_image_packages.sh index 28a78a3..18324d3 100644 --- a/build-custom-image/build-debian-image/batch_debian_image_packages.sh +++ b/build-custom-image/build-debian-image/batch_debian_image_packages.sh @@ -20,7 +20,7 @@ function install_docker_requirements() { apt-get install --yes docker-ce docker-ce-cli containerd.io docker-compose-plugin || exit_error "docker installation failed." # Install docker credential helper. MACHINE="$(uname -m)" - CLOUDSDK_PYTHON=/usr/bin/python3 gsutil cp gs://batch-agent-prod-us/docker-credential-gcr-tool/docker-credential-gcr-"$MACHINE".tar.gz docker-credential-gcr.tar.gz + CLOUDSDK_PYTHON=/usr/bin/python3 gcloud storage cp gs://batch-agent-prod-us/docker-credential-gcr-tool/docker-credential-gcr-"$MACHINE".tar.gz docker-credential-gcr.tar.gz tar -xzf docker-credential-gcr.tar.gz chmod +x docker-credential-gcr cp docker-credential-gcr /usr/local/bin/ diff --git a/build-custom-image/build-hpc-centos-image/batch_hpc_centos_image_packages.sh b/build-custom-image/build-hpc-centos-image/batch_hpc_centos_image_packages.sh index a7aa54b..ce262b4 100644 --- a/build-custom-image/build-hpc-centos-image/batch_hpc_centos_image_packages.sh +++ b/build-custom-image/build-hpc-centos-image/batch_hpc_centos_image_packages.sh @@ -16,7 +16,7 @@ function install_docker_requirements() { yum install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin || exit_error "docker installation failed." # Install docker credential helper. yum install -y python3 || exit_error "python3 installation failed." - CLOUDSDK_PYTHON=/usr/bin/python3 gsutil cp gs://batch-agent-prod-us/docker-credential-gcr-tool/docker-credential-gcr-"$MACHINE".tar.gz docker-credential-gcr.tar.gz + CLOUDSDK_PYTHON=/usr/bin/python3 gcloud storage cp gs://batch-agent-prod-us/docker-credential-gcr-tool/docker-credential-gcr-"$MACHINE".tar.gz docker-credential-gcr.tar.gz tar -xzf docker-credential-gcr.tar.gz chmod +x docker-credential-gcr cp docker-credential-gcr /usr/bin/ diff --git a/build-custom-image/build-hpc-rocky-image/batch_hpc_rocky_image_packages.sh b/build-custom-image/build-hpc-rocky-image/batch_hpc_rocky_image_packages.sh index 89c368e..e6048b8 100644 --- a/build-custom-image/build-hpc-rocky-image/batch_hpc_rocky_image_packages.sh +++ b/build-custom-image/build-hpc-rocky-image/batch_hpc_rocky_image_packages.sh @@ -15,7 +15,7 @@ function install_docker_requirements() { dnf -y install containerd.io || exit_error "containerd.io installation failed." dnf -y install docker-compose-plugin || exit_error "docker-compose-plugin installation failed." # Install docker credential helper. - CLOUDSDK_PYTHON=/usr/bin/python3 gsutil cp gs://batch-agent-prod-us/docker-credential-gcr-tool/docker-credential-gcr-"$MACHINE".tar.gz docker-credential-gcr.tar.gz + CLOUDSDK_PYTHON=/usr/bin/python3 gcloud storage cp gs://batch-agent-prod-us/docker-credential-gcr-tool/docker-credential-gcr-"$MACHINE".tar.gz docker-credential-gcr.tar.gz tar -xzf docker-credential-gcr.tar.gz chmod +x docker-credential-gcr cp docker-credential-gcr /usr/bin/