Part 1: • 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 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
Finally, all steps are put into two scripts (provision.sh and deploy.sh) so that the whol process can run fully unattended