hands-on lab

Setting up a Google Cloud Build Configuration to Build Docker Application

Difficulty: Intermediate
Duration: Up to 40 minutes
Students: 320
Rating: 4.5/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

When developing applications, one of the most interesting and useful things is automation. Most of the engineers try to automate as many things as they can. One of the most automated parts is code integration and code deployment (mostly known as CI/CD). In these phases, there is a step that represents the build of your application. This is very important because after having built your application, you deploy it in one of your environments. Because of its importance, Google provides you with the possibility to use Cloud Build. Google Cloud Build is a flexible and serverless service that allows you to create your build pipelines and then use them without worrying about server infrastructure.

In this lab, you will clone a public git repository that contains a simple docker application, you will create a configuration file to define the steps of your build pipeline, and you will execute it.

Learning Objectives

Upon completion of this lab you will be able to:

  • Understand how to structure a cloud build configuration
  • Set the correct steps to build a docker application
  • Define a cloud build step to store the docker image just built

Intended Audience

This lab is intended for:

  • Google Professional Cloud DevOps Engineers (PCDE) certification candidates
  • Google Professional Machine Learning Engineers (MLE) certification candidates
  • DevOps Engineers that want to create or migrate a DevOps build solution on Google Cloud

Prerequisites

Basic Docker and Git prerequisites are preferred but not required.

Updates

March 1st, 2022 - Updated the instructions and screenshots to reflect the latest UI

Environment before

Environment after

Covered topics

Lab steps

Signing In to the Google Cloud Console
Cloning the Docker Application Git Repository
Setting up the Cloud Build Configuration
Trigger the Cloud Build Pipeline