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
./build/setup-terraform-unix.sh
docker login
gcloud auth application-default login
ssh-keygen -t rsa -C "yourdockerhubemail@someemail.com" -f ./terraform/tf-cloud-init
.
If your deploying via ci something like (TODO:)
./build/setup-terraform-unix.sh
cat my_password.txt | docker login --username botname --password-stdin
gcloud auth application-default login
ssh-keygen -t rsa -C "yourdockerhubemail@someemail.com" -f ./terraform/tf-cloud-init
.