Part 2: • How to deploy Docker Applications on GCP v...
Link to the written tutorial on my blog:
https://www.pascallandau.com/blog/gcp...
Link to the branch of the Github repository:
https://github.com/paslandau/docker-p...
Overview of all tutorials:
https://www.pascallandau.com/docker-p...
Playlist of all tutorials:
• Docker development setup for PHP Projects ...
This video is a step-by-step instruction to deploy your first Docker container on a Google Cloud Platform (GCP) Compute Instance VM.
The whole infrastructure will be created from that scratch, i.e.
a GCP project
a "deployment" service account
a Container Registry for Docker images including a Cloud Storage bucket to store the images
a Compute Instance VM
and as a Bonus a "secret value" in the Secret Manager
All steps are done throgh the Cloud Console UI for a better understanding.
As a proof of concept, a custom nginx image is created locally and pushed to the Container Registry by first authenticating Docker locally via
the credentials of the deployment service account. Then, three methods are presented for logging into the Compute Instance to install Docker,
pull and start the image. This requires authentication again and will be done through the gcloud CLI tool that comes pre-installed on all
Compute Instances. In the end, the previously created secret is retrieved from the Secret Manager as a preparation for the following tutorial.