From e3e39ac68fa8497cbbbbd40f3f305e1e0ee9a3b5 Mon Sep 17 00:00:00 2001 From: Atharva Rane <41084525+atharvar28@users.noreply.github.com> Date: Thu, 10 Aug 2023 14:34:09 -0400 Subject: [PATCH] install go binary in jenkins CI worker (#2304) * install go binary in jenkins CI worker * install go * download go tar --------- Co-authored-by: Hara Prasad --- .secrets.baseline | 4 ++-- Docker/jenkins/Jenkins-CI-Worker/Dockerfile | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.secrets.baseline b/.secrets.baseline index 8e671afaa..527ffcc30 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -3,7 +3,7 @@ "files": "^.secrets.baseline$", "lines": null }, - "generated_at": "2023-07-31T16:54:24Z", + "generated_at": "2023-08-10T17:51:06Z", "plugins_used": [ { "name": "AWSKeyDetector" @@ -78,7 +78,7 @@ { "hashed_secret": "10daf3a26c6a17242a5ab2438a12ebc8276c7603", "is_verified": false, - "line_number": 115, + "line_number": 122, "type": "Secret Keyword" } ], diff --git a/Docker/jenkins/Jenkins-CI-Worker/Dockerfile b/Docker/jenkins/Jenkins-CI-Worker/Dockerfile index 671cd2e02..40fd08fa3 100644 --- a/Docker/jenkins/Jenkins-CI-Worker/Dockerfile +++ b/Docker/jenkins/Jenkins-CI-Worker/Dockerfile @@ -54,6 +54,13 @@ RUN export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" \ google-cloud-sdk-cbt \ kubectl +# install go - https://go.dev/doc/install +RUN wget https://go.dev/dl/go1.21.0.linux-amd64.tar.gz \ + && rm -rf /usr/local/go \ + && tar -C /usr/local -xzf go1.21.0.linux-amd64.tar.gz +ENV PATH="$PATH:/usr/local/go/bin" +RUN go version + # # install docker tools: #