Skip to content

Commit

Permalink
unpin gcloud version in gcloud-in-go image
Browse files Browse the repository at this point in the history
  • Loading branch information
krzyzacy committed Mar 16, 2018
1 parent fa8fe87 commit a5f24d6
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions images/gcloud/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,21 @@ RUN apt-get update && apt-get install -y \
wget && \
apt-get clean

ENV GCLOUD_VERSION 163.0.0
RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz && \
tar xf google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz -C / && \
rm google-cloud-sdk-$GCLOUD_VERSION-linux-x86_64.tar.gz && \
/google-cloud-sdk/install.sh
ENV PATH "/google-cloud-sdk/bin:${PATH}"
# Install gcloud

ENV PATH=/google-cloud-sdk/bin:/workspace:${PATH} \
CLOUDSDK_CORE_DISABLE_PROMPTS=1

RUN wget -q https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz && \
tar xzf google-cloud-sdk.tar.gz -C / && \
rm google-cloud-sdk.tar.gz && \
/google-cloud-sdk/install.sh \
--disable-installation-options \
--bash-completion=false \
--path-update=false \
--usage-reporting=false && \
gcloud components install alpha beta kubectl && \
gcloud info | tee /workspace/gcloud-info.txt

WORKDIR /workspace
ADD runner /
Expand Down

0 comments on commit a5f24d6

Please sign in to comment.