Last active
May 1, 2020 20:31
-
-
Save TiagoGouvea/a547f3acfb9712e8dc7189d563df8437 to your computer and use it in GitHub Desktop.
Updated config file to help create a remote instance, build and deploy a docker project to Google Cloud Platform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## Google cloud config | |
PROJECT="node-docker-gcp" | |
ZONE="us-central1-a" | |
## Instance settings | |
INSTANCE_NAME="my-compute-instance" | |
### Instance creation settings | |
TAGS="http-server" # or "http-server,https-server" | |
DELETION_PROTECTION="no-deletion-protection" # or "deletion-protection" | |
IMAGE_FAMILY="ubuntu-1604-lts" | |
IMAGE_PROJECT="ubuntu-os-cloud" | |
MACHINE_TYPE="f1-micro" | |
## Target docker images | |
IMAGE_TAG="node-docker-gcp" | |
CONTAINER_IMAGE="gcr.io/${PROJECT}/${IMAGE_TAG}" | |
REMOTE_PATH="/srv/project" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment