Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud Build on private VPC network

I have a Google Cloud Build trigger that build my image on the Google Cloud. I also have VPC network that hosting some resources that should be accessible while building the images.

While building the image, my docker script need to access the web server. It seems like the GCP Cloud build network is not my private VPC network. So, the script is not accessible to required resources that needed while building.

Is this possible to run the build in the VPC network? If yes, how?

like image 376
No1Lives4Ever Avatar asked Aug 17 '20 07:08

No1Lives4Ever


1 Answers

It WILL be possible. Today, the feature is opened to Alpha testers and will be soon (I expect by 2 months) released in beta.

Last week, gcloud SDK received this update that allow you to create a worker pool. In fact, you will create a pool of VM in your project. And thus, the VM will be directly connected to your VPC.

I don't know the pricing model, but I think you will pay the Worker pool as standard VM price. Therefore, it won't as cheaper as Cloud Build. And it seems not planned to create a connector (peering? VPC connector?) between your VPC and the current Cloud Build managed version.

like image 132
guillaume blaquiere Avatar answered Sep 27 '22 20:09

guillaume blaquiere