From 0fbab55c53608a3f7e0a00d34d546636ac22201a Mon Sep 17 00:00:00 2001 From: strivedi-px Date: Thu, 6 Jun 2024 14:50:59 +0530 Subject: [PATCH] fix: fix Dockerfile --- test/integration_test/Dockerfile | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/test/integration_test/Dockerfile b/test/integration_test/Dockerfile index 82fb2b5e17..959ef41bb3 100644 --- a/test/integration_test/Dockerfile +++ b/test/integration_test/Dockerfile @@ -1,12 +1,12 @@ -FROM golang:1.17.0 +FROM golang:1.21.10 # Install dependancies -RUN apt-get update && \ +RUN apt-get update && \ /usr/local/go/bin/go install -v gotest.tools/gotestsum@latest -RUN apt-get update && apt-get install -y python3-pip && apt-get install -y jq - -RUN pip3 install --upgrade pip +RUN apt-get update && \ + apt-get install -y pipx jq && \ + pipx ensurepath #Install Google Cloud SDK ARG GCLOUD_SDK=google-cloud-sdk-418.0.0-linux-x86_64.tar.gz @@ -20,14 +20,13 @@ ENV PATH "${PATH}:$GCLOUD_INSTALL_DIR/google-cloud-sdk/bin" RUN gcloud components install gke-gcloud-auth-plugin RUN wget -O /usr/local/bin/aws-iam-authenticator https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-07-26/bin/linux/amd64/aws-iam-authenticator && \ - chmod +x /usr/local/bin/aws-iam-authenticator - -RUN pip3 install awscli + chmod +x /usr/local/bin/aws-iam-authenticator && \ + pipx install awscli # Install kubectl -RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -RUN chmod +x ./kubectl -RUN mv ./kubectl /usr/local/bin +RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \ + chmod +x ./kubectl && \ + mv ./kubectl /usr/local/bin WORKDIR /