Containerizing and Registering an App via Cloud Build

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

A critical step in developing an app to deploy in Cloud Run is to containerize the files and store the resulting disk image in an accessible location. In this hands-on lab, you’ll use Cloud Shell to initiate the Cloud Build process that will create a containerized disk image of your working files and store them in Google Cloud Container Registry.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Retrieve and Activate Working Files

In Cloud Shell, clone the desired GitHub repo, and run the setup script.

Containerize and Store the New Disk Image

Use the appropriate gcloud command invoking Cloud Build to containerize the web app and then store the resulting disk image in Container Registry.

Verify the Build

Review the Cloud Build history to confirm the specified process was followed and check Container Registry for the transferred disk image.

Additional Resources

Your team has progressed to the stage where they are ready to containerize their web app and you've been asked to make it happen. You decide to use Cloud Shell to quickly compile the app and then use a Dockerfile to create the disk image and store it in Container Registry. Naturally, you'll want to check your work and ensure all the steps were properly carried out.


GitHub repo:

Folder: containerizing-and-registering-an-app-via-cloud-build

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?