Skip to content

Instantly share code, notes, and snippets.

@jozko
Created October 3, 2017 14:41
Show Gist options
  • Save jozko/27e79507dbf474e823a8c5d045856968 to your computer and use it in GitHub Desktop.
Save jozko/27e79507dbf474e823a8c5d045856968 to your computer and use it in GitHub Desktop.
gcloud compatible Docker CE image
from docker:17.06.1-ce
ENV CLOUD_SDK_VERSION 171.0.0
ENV PATH /google-cloud-sdk/bin:$PATH
RUN apk --no-cache add \
curl \
python \
py-crcmod \
bash \
libc6-compat \
openssh-client \
git \
&& curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
rm google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \
ln -s /lib /lib64 && \
gcloud config set core/disable_usage_reporting true && \
gcloud config set component_manager/disable_update_check true && \
gcloud config set metrics/environment github_docker_image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment