Skip to content

Instantly share code, notes, and snippets.

@shalkam
Last active July 15, 2019 20:09
Show Gist options
  • Save shalkam/83e3b02bb69247518bf92ae49cdeddc8 to your computer and use it in GitHub Desktop.
Save shalkam/83e3b02bb69247518bf92ae49cdeddc8 to your computer and use it in GitHub Desktop.
Circleci node docker with gcloud sdk, kubectl, prisma and apollo
FROM circleci/node
ARG CLOUD_SDK_VERSION=251.0.0
ENV CLOUD_SDK_VERSION=$CLOUD_SDK_VERSION
ARG INSTALL_COMPONENTS
ENV PATH /opt/google-cloud-sdk/bin/:/home/circleci/.yarn/bin:$PATH
RUN sudo apt-get update -qqy && \
sudo apt-get install -qqy \
python-dev \
python-setuptools \
apt-transport-https \
lsb-release \
gettext && \
sudo easy_install -U pip && \
sudo pip install -U crcmod && \
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \
sudo sh -c 'echo "deb https://packages.cloud.google.com/apt $1 main" > /etc/apt/sources.list.d/google-cloud-sdk.list' -- "$CLOUD_SDK_REPO" && \
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - && \
sudo sudo apt-get update && sudo apt-get install -y google-cloud-sdk=${CLOUD_SDK_VERSION}-0 $INSTALL_COMPONENTS && \
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 && \
sudo apt-get install kubectl && \
gcloud --version
RUN yarn global add apollo prisma
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment