This project is an automated implementation of CircleCI Server Static Installation Scripts to your Google Cloud account.
Please consider the limitations of the Static implementation of CircleCI Server prior to deploying and operating in production.
Keep in mind that CircleCI only provides support for CircleCI Server deployed in non-AWS cloud providers for Platinum support customers only. Contact CircleCI support or your Customer Success Manager to get started.
- Clone this repository
- Install Terraform. If you already have Terraform installed, please make sure that you are using version 0.12 or higher.
- A VPC and public subnet with internet access available.
- The JSON file of your service account key. You can create one by following these instructions.
- A CircleCI License file (.rli). Contact CircleCI support if you need a license.
-
Go to the root directory of this project.
-
run
terraform init
to initiate terraform. This will install all terraform plugins and initiate terraform scripts. -
Run
cp terraform.tfvars.template terraform.tfvars
. Openterraform.tfvars
and configure all of the required variables.Variables Description credentials Either the path to or the contents of a service account key file in JSON format. project The default GCP project to manage your CircleCI resources in. region The default GCP region to manage your CircleCI resources in. circleci_zone The default GCP zone region for the CircleCI VM instances circleci_network_name Name of the VPC network for hosting CircleCI subnet_name The name of the subnet for deploying CircleCI VMs -
Run
terraform apply
to install your CircleCI infrastructure. -
Your
nomad-client
VM will initially fail to install. You'll need modify the/scripts/provision-nomad-client-ubuntu.sh
file and add the external IP address of yourcircleci-services
VM toNOMAD_SERVER_ADDRESS
environment variable. -
Run
terraform apply
again to complete your installation. -
Visit IP supplied at the end of the Terraform output
-
Follow instructions to setup and configure your installation
-
Once your installation has finished, you can use our circleci-realitycheck-gcp repo to check basic CircleCI functionality.
WARNING: This will permenantly destroy your entire CircleCI infrastructure. Please use with caution.
- Run
terraform destroy
to permanently destroy your CircleCI infrastructure.