From 1d8a99986d98850a7971a681d5194267ccaca8b8 Mon Sep 17 00:00:00 2001 From: v-umangsr Date: Mon, 17 Mar 2025 10:21:16 +0530 Subject: [PATCH] Added core tool back to cloud shell --- linux/base.Dockerfile | 10 ++++++++++ tests/command_list | 2 ++ 2 files changed, 12 insertions(+) diff --git a/linux/base.Dockerfile b/linux/base.Dockerfile index b4dba60f..899be4cf 100644 --- a/linux/base.Dockerfile +++ b/linux/base.Dockerfile @@ -146,6 +146,16 @@ RUN TF_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/terraform && rm -f terraform.zip terraform.sha256 \ && unset TF_VERSION + # Install azure-functions-core-tools + RUN wget -nv -O Azure.Functions.Cli.zip `curl -fSsL https://api.github.com/repos/Azure/azure-functions-core-tools/releases/latest | grep "url.*linux-x64" | grep -v "sha2" | cut -d '"' -f4` \ + && unzip -d azure-functions-cli Azure.Functions.Cli.zip \ + && chmod +x azure-functions-cli/func \ + && chmod +x azure-functions-cli/gozip \ + && mv -v azure-functions-cli /opt \ + && ln -sf /opt/azure-functions-cli/func /usr/bin/func \ + && ln -sf /opt/azure-functions-cli/gozip /usr/bin/gozip \ + && rm -r Azure.Functions.Cli.zip + # Setup locale to en_US.utf8 RUN echo 'LANG=en_US.UTF-8' >> /etc/locale.conf && locale-gen.sh ENV LANG="en_US.utf8" diff --git a/tests/command_list b/tests/command_list index 460ee48b..fec491d9 100644 --- a/tests/command_list +++ b/tests/command_list @@ -394,6 +394,7 @@ fsck.ext4 fsck.minix fsfreeze fstrim +func function funzip fuse-overlayfs @@ -467,6 +468,7 @@ gnutls-cli-debug gnutls-serv go gofmt +gozip gp-archive gpasswd gp-collect-app