mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
update
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
74ead3a64d
commit
0c5e1b8274
|
@ -1,33 +1,20 @@
|
||||||
FROM alpine:latest
|
FROM jess/gcloud
|
||||||
|
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
bash \
|
bash \
|
||||||
parallel \
|
parallel
|
||||||
python
|
|
||||||
|
|
||||||
# Install google cloud sdk
|
# Install google cloud sdk
|
||||||
# Download clean-registry script
|
# Download clean-registry script
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apk add --no-cache --virtual .build-deps \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
curl \
|
curl \
|
||||||
tar \
|
|
||||||
&& curl -sSL -o /tmp/google-cloud-sdk.tar.gz https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz \
|
|
||||||
&& curl -sSL -o /usr/bin/clean-registry https://raw.githubusercontent.com/jessfraz/dotfiles/master/bin/clean-registry \
|
&& curl -sSL -o /usr/bin/clean-registry https://raw.githubusercontent.com/jessfraz/dotfiles/master/bin/clean-registry \
|
||||||
&& chmod +x /usr/bin/clean-registry \
|
&& chmod +x /usr/bin/clean-registry \
|
||||||
&& 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 \
|
|
||||||
&& ( \
|
|
||||||
cd /usr/src/google-cloud-sdk \
|
|
||||||
&& ./install.sh \
|
|
||||||
--usage-reporting false \
|
|
||||||
--path-update true \
|
|
||||||
) \
|
|
||||||
&& apk del .build-deps
|
&& apk del .build-deps
|
||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
ENV PATH $PATH:/usr/src/google-cloud-sdk/bin
|
|
||||||
ENV GOPATH /go
|
ENV GOPATH /go
|
||||||
|
|
||||||
# Install reg
|
# Install reg
|
||||||
|
|
|
@ -5,7 +5,7 @@ RUN set -x \
|
||||||
curl \
|
curl \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
tar \
|
tar \
|
||||||
&& curl -sSL -o /tmp/google-cloud-sdk.tar.gz https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz \
|
&& curl -sSL -o /tmp/google-cloud-sdk.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.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 \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user