diff --git a/gcloud/Dockerfile b/gcloud/Dockerfile index 4503add..17cf6bf 100644 --- a/gcloud/Dockerfile +++ b/gcloud/Dockerfile @@ -1,11 +1,14 @@ FROM python:2-alpine +ENV PATH $PATH:/usr/src/google-cloud-sdk/bin +ENV CLOUD_SDK_DOCKER_VERSION 203.0.0 + RUN set -x \ && apk add --no-cache --virtual .build-deps \ curl \ ca-certificates \ tar \ - && curl -sSL -o /tmp/google-cloud-sdk.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz \ + && curl -sSL -o /tmp/google-cloud-sdk.tar.gz "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_DOCKER_VERSION}-linux-x86_64.tar.gz" \ && mkdir -p /usr/src/google-cloud-sdk \ && tar -xzf /tmp/google-cloud-sdk.tar.gz -C /usr/src/google-cloud-sdk --strip-components 1 \ && rm /tmp/google-cloud-sdk.tar.gz \ @@ -13,11 +16,12 @@ RUN set -x \ cd /usr/src/google-cloud-sdk \ && ./install.sh \ --usage-reporting false \ - --path-update true \ + --path-update false \ ) \ - && apk del .build-deps + && apk del .build-deps \ + && gcloud components update \ + && gcloud version WORKDIR /root -ENV PATH $PATH:/usr/src/google-cloud-sdk/bin ENTRYPOINT ["gcloud"] diff --git a/latest-versions.sh b/latest-versions.sh index 5d382e8..2a58f79 100755 --- a/latest-versions.sh +++ b/latest-versions.sh @@ -100,6 +100,7 @@ hashicorp/consul coredns/coredns CouchPotato/CouchPotatoServer curl/curl +GoogleCloudPlatform/cloud-sdk-docker google/gitiles bazelbuild/bazel google/guetzli