0

I have a github actions workflow which builds and pushes the docker images to container registry on GCP. Post that it deploys the images onto compute engine. Currently three images are being deployed on three separate VMs. The goal is to have these on the same VM machine.

Tried to Manually create the VMs on the GCP but it lets me add only one image so far. Please help me with the settings or how I can create a VM that can host several Images on it. If not, please suggest a best way to overcome this situation.

  • GKE, for instance, run multiple container on COS OS VM. Therefore, it's possible!! You have to create a startup script on your VM that run all the container with a background command. You create a process for each run and that's all. – guillaume blaquiere Jul 12 '23 at 15:09
  • In this case, I would not like to use GKE due to the constraints in the budget. I would like to deploy the images onto GCE (compute engine COS VM). Is it possible on a GCE cos VM? – Apoorva Chandrashekar Jul 18 '23 at 10:40
  • yes, it's possible. But you have to write the script yourself, there is no built in configuration for multi container – guillaume blaquiere Jul 18 '23 at 11:48
  • Could you point me to a source where I could find some details on the approach? That would be very helpful. – Apoorva Chandrashekar Jul 18 '23 at 12:01

0 Answers0