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.
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
- 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.
- Deploy the Disk Image to Cloud Run
Using Cloud Shell, deploy the disk image to Cloud Run in the region specified below.
- 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