This is a demo project showing how to deploy a container to GCP.
To deploy your own project:
-
Change
GCP_PROJECT_NAME
to your project name incloudbuild.yaml
andpackage.json
-
Run
yarn install
-
Run
yarn create-container
-
Create an instance template on GCP
a. Check "Deploy a container image to this VM instance"
b. Set the container image name to "gcr.io/GCP_PROJECT_NAME/container-demo"
-
Create an instance group that uses the new instance template on GCP
-
Change
INSTANCE_GROUP_NAME
to your instance group name inpackage.json
-
Make changes and run
yarn deploy
to deploy a new version.