Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.71 KB

SETUP.md

File metadata and controls

21 lines (14 loc) · 1.71 KB

Setup GCP

In order to deploy using GCP get the service json file from google admin dashboard and save it as gc-service.json in the root directory of this project or use Google Cloud CLI to login.

In order to use the DNS you need to enable it in the console and have a valid zone from cloud dns. You need to enable the Compute Engine API to deploy the instance. Make sure to register your domain with Google Domains or transfer over to apply the DNS records. You can point to the IP address. After deploying you need to wait about 10 mins for the ssl certificate to validate. You can check the ip in outputs to see if everything was successful.

Follow Terraform CLI and Google Cloud CLI or run step 1 if terraform is not setup (skip and just run terraform init in the terraform project if its installed). For apple m1 please follow this issue

Locally

  1. ./build/setup-terraform-unix.sh
  2. docker login
  3. gcloud auth application-default login
  4. ssh-keygen -t rsa -C "yourdockerhubemail@someemail.com" -f ./terraform/tf-cloud-init.

If your deploying via ci something like (TODO:)

  1. ./build/setup-terraform-unix.sh
  2. cat my_password.txt | docker login --username botname --password-stdin
  3. gcloud auth application-default login
  4. ssh-keygen -t rsa -C "yourdockerhubemail@someemail.com" -f ./terraform/tf-cloud-init.