GCP DevOps tricks: Create a custom Cloud Shell image that includes Terraform and Helm

Google Cloud Data Catalog Now Available in Public Beta
June 27, 2019
Azure Webinar Series: Migrate Web Apps with Azure Database for MySQL and Azure App Service
June 27, 2019
Google Cloud Data Catalog Now Available in Public Beta
June 27, 2019
Azure Webinar Series: Migrate Web Apps with Azure Database for MySQL and Azure App Service
June 27, 2019

If you develop or manage apps on Google Cloud Platform (GCP), you’re probably familiar with Cloud Shell, which provides you with a secure CLI that you can use to manage your environment directly from the browser. But while Cloud Shell’s default image contains most of the tools you could wish for, in some cases you might need more–for example, Terraform for infrastructure provisioning, or Helm, the Kubernetes package manager.

In this blog post, you will learn how to create a custom Docker image for Cloud Shell that includes the Helm client and Terraform. At a high level, this is a two-step process:

  1. Create and publish a Docker image
  2. Configure your custom image to be used in Cloud Shell

Let’s take a closer look.

1. Create and publish a custom Cloud Shell Docker image

First, you need to create new Docker image that’s based on the default Cloud Shell image and then publish the image you created to Container Registry.

1. Create a new repo and set the project ID where the Docker image should be published:

Leave a Reply

Your email address will not be published. Required fields are marked *