Go Live with Your Website on Cloud Run

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

The goal of this hands-on lab is to give you the experience of pushing your website application live on Cloud Run, from start to finish, including revision and redeployment. In this lab, you’ll use Cloud Shell to gather the necessary files from a GitHub repository and install any necessary dependencies. Then you’ll call Cloud Build to containerize the web app and store it in Container Registry. Once that operation is complete, you will deploy the new disk image to Cloud Run and review the output. Then, you’ll make an update to the web app source code, re-build the application, and iterate the process to review the new version of your site running on Cloud Run.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Prepare Website App on Google Cloud

Retrieve the working files from the repository specified below and use the listed folder. Execute a script to set up the web application.

GitHub repo: https://github.com/linuxacademy/content-launching-and-updating-a-website-using-cloud-run

Folder: go-live-with-your-website-on-cloud-run

Create and Store a Containerized Application

Working in the folder specified below, use Cloud Shell to build a containerized image and store it with the specified name and version number.

Folder: monolith

Name: webcat

Version: 1.0.0

Deploy the Disk Image to Cloud Run

Using Cloud Shell, deploy the disk image to Cloud Run in the region specified below.

Region: us-east1

Revise Website and Redeploy New Version

Update the website to add a new cat photo and caption after the current final entry; use the caption and image listed below. Rebuild the web application, as well as the disk image, and redeploy it with the name and version number listed below.

Caption: Z Happy Cat

Image: z-happy-cat.jpg

Name: webcat

Version: 2.0.0

Additional Resources

Your team has completed the first version of a website built with React.js. Your job is to transfer the files from the repo to Google Cloud, build the app, and install all dependencies. Then you need to containerize the web app, store the new disk image, and deploy it to Cloud Run. Once the website is up and running, you receive an update that needs to be incorporated into a new deployed version.

Resources

GitHub repo: https://github.com/linuxacademy/content-launching-and-updating-a-website-using-cloud-run

Folder: go-live-with-your-website-on-cloud-run

Build and Deploy Details

Build folder: monolith

Name: webcat

Version: 1.0.0

Region: us-east1

Update Details

Caption: Z Happy Cat

Image: z-happy-cat.jpg

Name: webcat

Version: 2.0.0

Region: us-east1

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?