GCP | Cloud Build | How to build and store Docker images using Cloud Build and Artifact Registry

  Рет қаралды 7,042

The Cloud Nerd

The Cloud Nerd

Күн бұрын

🟨 Still talking about #Google Cloud Build in #GCP! How do you setup a pipeline to build and store docker images in Artifact Registry?
When you hear the word #DevOps I’m sure the first thing that comes to your mind is the word ‘CI/CD’ or #automation right?
Well that is very normal and expected because CI/CD itself is a very critical component in every DevOps practice, and without it, you won’t have a proper DevOps…
The role of CI (Continuous Integration) is to get you ready for the CD (Continuous Delivery/Deployment) stage, by taking whatever changes you have done to your application, and make them ready to be deployed into your target platform…
🔴 Once I test the pipeline, you will see that the Google Cloud Source Repository will mirror changes from Github, then trigger the Cloud Build pipeline to build the docker image and then store it in the Artifact Registry in GCP. This will make you ready to take it further and deploy your application to any other platform later such as #GKE (Google Kubernetes Engine), Cloud Run, App Engine, or even platforms outside of Google Cloud Platform (GCP).
More optimization can be done on this such as use caching and best practices to speed up the build time in Cloud Build, and also will show you how to enable approvals in Cloud Build as well.
--------------------------------------
--------------------------------------
🔴🔴 Please don’t forget to like the video and subscribe as well! 🔴🔴
--------------------------------------
--------------------------------------
🔴✅ Video timeline and chapters:
- 00:00 - Introduction
- 01:26 - Why CI/CD is very important in DevOps?
- 02:15 - What is Google Artifact Registry and Google Artifact Registry vs. Google Container Registry
- 03:20 - Prerequisites and task list to configure Cloud Build to build and store images in Google Artifact Registry
- 05:47 - Step 1 How to prepare your application to be containerized?
- 08:04 - Step 2 Prepare the Dockerfile to containerize your application
- 10:49 - Step 3 How to connect a GitHub repository to Google Cloud Source Repositories?
- 13:47 - Step 4a How to setup Google Artifact Registry repository?
- 16:00 - Step 4b How to grant Google Cloud Build permissions to write and store images in Google Artifact Registry?
- 16:30 - Step 4c What is the URL for Google Artifact Registry?
- 19:07 - Step 5a How to create a Google Cloud Build trigger?
- 21:04 - Step 5b How to create and use cloudbuild.yaml file?
- 25:13 - Next optimization opportunities
- 27:04 - Closing
--------------------------------------
--------------------------------------
✅ Links mentioned in the video:
- DevOps in the Cloud | GCP Cloud Build | How to Deploy Apps to VMs in GCP Compute Engine | Part 1: • DevOps in the Cloud | ...
- DevOps in the Cloud | GCP Cloud Build | How to Deploy Apps to VMs in GCP Compute Engine | Part 2: • DevOps in the Cloud | ...
- The GitHub repo: github.com/salehram/gcp-cloud...
- Google Artifact Registry: cloud.google.com/artifact-reg...
- Understanding Artifact Registry vs. Container Registry: cloud.google.com/blog/product...
- Transition from Container Registry: cloud.google.com/artifact-reg...
- Create a build configuration file: cloud.google.com/build/docs/c...
- Build configuration file schema: cloud.google.com/build/docs/b...
- Build container images: cloud.google.com/build/docs/b...
- Build, test, and containerize Python applications: cloud.google.com/build/docs/b...
- Build, test, and containerize Java applications: cloud.google.com/build/docs/b...
--------------------------------------
--------------------------------------
📣✅ Other useful links:
- Follow me on Twitter: / salehram87
- Connect with me on LinkedIn: / salehram
- Check my website and blog: www.salehram.com
- Check out my Google Workspace Admin Course on Udemy and get it with a discounted price: www.salehram.com/gws-admin-tr...
--------------------------------------
--------------------------------------
📣✅ Interesting channels to follow and subscribe:
- Google Workspace - / googleworkspace
- Google Cloud Tech - / googlecloudplatform
- Google Cloud - / @googlecloud
- Learn GCP with Mahesh - / learngcpwithmahesh
- Saperis - Hands-on tutorials for Google Workspace apps - / saperis

Пікірлер: 8
@bactran7799
@bactran7799 9 ай бұрын
thanks for your video. It helps me a lot
@dahuatechkenya522
@dahuatechkenya522 Ай бұрын
hi, im getting the error Permission denied enabling the Cloud Source Repositories API for ...... A user with permissions to do so (such as the project owner) must enable the API. while trying to add cloud resource repository
@dataanalysiscourse785
@dataanalysiscourse785 11 ай бұрын
Nice
@yashtrada1
@yashtrada1 Жыл бұрын
awesome thanks alotttttttttttttttttt!!!!!!!!!!!!!!!!!!!1
@shaiksaifuddin
@shaiksaifuddin Жыл бұрын
Thank you so much, this was real helpful
@muskanvazirani9582
@muskanvazirani9582 Жыл бұрын
you can help the channel more by sharing it with your fellow classmates!
@Josh-di2ig
@Josh-di2ig Жыл бұрын
thanks for the demo, it's amazing. question: Will Google charge me if I follow your demo in my own GCP project?
Manually Deploy to Cloud Run - Updated for Artifact Registry
11:04
ScriptBytes
Рет қаралды 4,5 М.
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 40 МЛН
CI/CD using Google Cloud Build
28:01
Learn Cloud Computing & AI
Рет қаралды 1,1 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 230 М.
Learning Docker // Build Container Images
23:02
Christian Lempa
Рет қаралды 31 М.
Introduction to Dataform in Google Cloud Platform
41:47
Cloud 4 Data Science
Рет қаралды 25 М.
Kubernetes CI/CD Pipeline Using Jenkins | DevOps Tutorial/Project - 2023
2:49:55