Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joatmon08/chrome-remote-desktop-pipeline
https://github.com/joatmon08/chrome-remote-desktop-pipeline
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/joatmon08/chrome-remote-desktop-pipeline
- Owner: joatmon08
- License: mpl-2.0
- Created: 2019-10-18T18:11:34.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-20T00:32:39.000Z (almost 4 years ago)
- Last Synced: 2024-10-27T07:51:08.098Z (2 months ago)
- Language: Go
- Homepage: https://speakerdeck.com/joatmon08/remote-desktop-continuously-delivered
- Size: 6.98 MB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chrome-remote-desktop-pipeline
A pipeline to deploy a Chrome Remote Desktop host
based on a development environment.See [joatmon08/chrome-remote-desktop-image](https://github.com/joatmon08/chrome-remote-desktop-image) for the image used.
## Pre-Requisites
- Terraform
- Terraform Cloud
- Google Cloud
- CircleCI## Usage
1. Make sure to create a Terraform Cloud workspace and add the variables
required in `variables.tf`.
1. You can do this manually by creating a `local.env` file as such
```shell
export TF_VAR_credentials=$(cat key-terraform.json)
export TF_VAR_crd_code=""
export TF_VAR_crd_pin=
export TF_VAR_crd_user=
export TF_VAR_public_key=$(cat circleci.pub)
export TF_VAR_project=
export TF_VAR_prefix=
export TF_VAR_region=
export INFRA_ENVIRONMENT=
```
1. Then, run the `pushvars` script to push these up locally.
```shell
bash ./scripts/pushvars.sh -l true
```1. Note that the `TF_VAR_crd_code` and `TF_VAR_region` will be overwritten by
CircleCI.1. Get the refresh token from
[remotedesktop.google.com/headless](https://remotedesktop.google.com/headless).
Copy this. You need to get a new one *each* time you run the pipeline1. Add the following to the CircleCI environment variables;
```shell
GCLOUD_SERVICE_KEY="json service account key"
SSH_PUBLIC_KEY="SSH public key for host"
TFCLOUD_SERVICE_KEY="API token for Terraform Cloud"
TF_VAR_crd_code="Refresh token that you got above."
TF_VAR_region="Region you want to deploy the instance to"
```