How to deploy Docker Applications on GCP via the gcloud cli [Tutorial]

preview_player
Показать описание

Link to the written tutorial on my blog:

Link to the branch of the Github repository:

Overview of all tutorials:

Playlist of all tutorials:

This video is a step-by-step instruction to deploy your first Docker container on a Google Cloud Platform (GCP) Compute Instance VM through the gcloud cli command line utility.

It is still required to manually create a GCP project as well as a "master" service account with the "Owner" role.
This service account is then used to

- enable the necessary APIs
- create a "deployment" service account incl. key file
- assign the required roles to it
- create a Compute Instance VM with the corresponding firewall rules

Once the infrastructure is up an running, the "deployment" service account is used to privision the VM, i.e.
install Docker and ensure that the root user is properly authenticated to pull images from the container registry.

Afterwards, a deployment is performed that
- builds a customer nginx docker images
- pushes it to the registry
- transfers a script to the VM that
-- pulls the image
-- starts a container

Рекомендации по теме
join shbcf.ru