From: aguilard Date: Wed, 15 Nov 2023 12:34:41 +0000 (+0000) Subject: Pin gcloud version in tests Dockerfile X-Git-Tag: release-v15.0-start~10 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F22%2F14022%2F1;p=osm%2Fdevops.git Pin gcloud version in tests Dockerfile Change-Id: Ic0afc565083752f0b8df63145d606346a53b8acc Signed-off-by: aguilard --- diff --git a/docker/tests/Dockerfile b/docker/tests/Dockerfile index d981f847..3b5aae09 100644 --- a/docker/tests/Dockerfile +++ b/docker/tests/Dockerfile @@ -64,10 +64,13 @@ RUN pip3 install \ -r /usr/lib/python3/dist-packages/osmclient/requirements.txt \ -r /usr/share/osm-tests/requirements.txt -# Google Cloud CLI +# Google Cloud CLI and kubectl RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - -RUN apt-get update && apt-get install -y google-cloud-sdk +RUN DEBIAN_FRONTEND=noninteractive apt-get --yes update && \ + DEBIAN_FRONTEND=noninteractive apt-get --yes install \ + google-cloud-cli=455.* \ + kubectl=1.28.* # Azure CLI RUN curl -sL https://aka.ms/InstallAzureCLIDeb | bash