Skip to content

Instantly share code, notes, and snippets.

@TiagoGouvea
Last active May 1, 2020 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TiagoGouvea/a547f3acfb9712e8dc7189d563df8437 to your computer and use it in GitHub Desktop.
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
#!/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