mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-04-03 19:00:42 +02:00
fix gcloud
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
af2cc06e8f
commit
dc06ac4e5e
@ -1,11 +1,14 @@
|
|||||||
FROM python:2-alpine
|
FROM python:2-alpine
|
||||||
|
|
||||||
|
ENV PATH $PATH:/usr/src/google-cloud-sdk/bin
|
||||||
|
ENV CLOUD_SDK_DOCKER_VERSION 203.0.0
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
tar \
|
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 \
|
&& mkdir -p /usr/src/google-cloud-sdk \
|
||||||
&& tar -xzf /tmp/google-cloud-sdk.tar.gz -C /usr/src/google-cloud-sdk --strip-components 1 \
|
&& tar -xzf /tmp/google-cloud-sdk.tar.gz -C /usr/src/google-cloud-sdk --strip-components 1 \
|
||||||
&& rm /tmp/google-cloud-sdk.tar.gz \
|
&& rm /tmp/google-cloud-sdk.tar.gz \
|
||||||
@ -13,11 +16,12 @@ RUN set -x \
|
|||||||
cd /usr/src/google-cloud-sdk \
|
cd /usr/src/google-cloud-sdk \
|
||||||
&& ./install.sh \
|
&& ./install.sh \
|
||||||
--usage-reporting false \
|
--usage-reporting false \
|
||||||
--path-update true \
|
--path-update false \
|
||||||
) \
|
) \
|
||||||
&& apk del .build-deps
|
&& apk del .build-deps \
|
||||||
|
&& gcloud components update \
|
||||||
|
&& gcloud version
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
ENV PATH $PATH:/usr/src/google-cloud-sdk/bin
|
|
||||||
|
|
||||||
ENTRYPOINT ["gcloud"]
|
ENTRYPOINT ["gcloud"]
|
||||||
|
@ -100,6 +100,7 @@ hashicorp/consul
|
|||||||
coredns/coredns
|
coredns/coredns
|
||||||
CouchPotato/CouchPotatoServer
|
CouchPotato/CouchPotatoServer
|
||||||
curl/curl
|
curl/curl
|
||||||
|
GoogleCloudPlatform/cloud-sdk-docker
|
||||||
google/gitiles
|
google/gitiles
|
||||||
bazelbuild/bazel
|
bazelbuild/bazel
|
||||||
google/guetzli
|
google/guetzli
|
||||||
|
Loading…
x
Reference in New Issue
Block a user