This is an automated email from the ASF dual-hosted git repository.

damccorm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new cb8adf123e7 adding glcoud cli and kubectl (#27358)
cb8adf123e7 is described below

commit cb8adf123e75357820d602e02a9bbd2f17029f84
Author: Vlado Djerek <[email protected]>
AuthorDate: Wed Jul 5 19:22:41 2023 +0200

    adding glcoud cli and kubectl (#27358)
---
 .github/gh-actions-self-hosted-runners/arc/images/Dockerfile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/gh-actions-self-hosted-runners/arc/images/Dockerfile 
b/.github/gh-actions-self-hosted-runners/arc/images/Dockerfile
index be88d230f76..5a646c6940c 100644
--- a/.github/gh-actions-self-hosted-runners/arc/images/Dockerfile
+++ b/.github/gh-actions-self-hosted-runners/arc/images/Dockerfile
@@ -50,6 +50,15 @@ RUN curl -OL 
https://github.com/cli/cli/releases/download/v2.31.0/gh_2.31.0_linu
     tar -xvf gh_2.31.0_linux_amd64.tar.gz && \
     rm gh_2.31.0_linux_amd64.tar.gz && \
     mv gh_2.31.0_linux_amd64/bin/gh /usr/local/bin 
+#Install GCloud CLI and Kubectl
+RUN curl -OL 
https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-367.0.0-linux-x86_64.tar.gz
 && \
+    tar -xvf google-cloud-sdk-367.0.0-linux-x86_64.tar.gz && \
+    rm google-cloud-sdk-367.0.0-linux-x86_64.tar.gz && \
+    mv google-cloud-sdk /usr/local/google-cloud-sdk && \
+    /usr/local/google-cloud-sdk/install.sh --quiet && \
+    /usr/local/google-cloud-sdk/bin/gcloud components install kubectl 
+ENV PATH="${PATH}:/usr/local/google-cloud-sdk/bin"
+
 # Needed to transfer path addtitions to runner environment
 RUN echo PATH=$PATH >> /runnertmp/.env
 USER runner

Reply via email to