Skip to content

Instantly share code, notes, and snippets.

@checktravis
Last active June 15, 2018 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save checktravis/23b765521f231f7577346eefd192e8ed to your computer and use it in GitHub Desktop.
Save checktravis/23b765521f231f7577346eefd192e8ed to your computer and use it in GitHub Desktop.
Experimenting node deployment from within Google Cloud Shell. The default image has node but not yarn. It is configurable with a Dockerfile, this seems to work: (this would be a DEV source, not optimized for prod)
FROM gcr.io/cloudshell-images/cloudshell:latest
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install yarn -y
# Add your content here
# To trigger a rebuild of your Cloud Shell image:
# 1. Commit your changes locally: git commit -a
# 2. Push your changes upstream: git push origin master
# This triggers a rebuild of your image hosted at https://XXXXXXXXXX
# You can find the Cloud Source Repository hosting this file at https://source.developers.google.com/XXXXXXXXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment