<commit_before># Deploying Concourse
---

This document will walk through deploying a concourse clustered install to GCP using bbl and bosh.

## Prerequisites

* bbl
* A GCP Service Account key as described in README.md
* BBL up. e.g. ```bbl up --gcp-zone us-west1-a --gcp-region us-west1 --gcp-service-account-key service-account.key.json --gcp-project-id my-gcp-project-id --iaas gcp```
* This guide will assume the [Bosh v2 CLI](https://bosh.io/docs/cli-v2.html) is installed, but bosh v1 CLI will work, with some minor changes.

## Create load balancer

```
bbl create-lbs --type concourse
```

## Create a bosh deployment manifest

Scale instance types, disks and instance count based on your needs. Other sizes are available, see ```bosh cloud-config```.

1. Start with the sample manifest from the [Concourse documentation](http://concourse.ci/clusters-with-bosh.html)
2. Replace all ```vm_type: REPLACE_ME``` with ```vm_type: n1-standard-1```.
3. Add the vm_extension ```lbs``` to the instance_group "web"
4. Add the property ```tls_bind_port: 443``` to the instance_group "web"
5. Add the vm_extension ```50GB_ephemeral_disk``` to the instance_group "worker"
6. Replace all ```persistent_disk_type: REPLACE_ME``` with ```persistent_disk_type: 5GB```
7. Fill out the remaining REPLACE_ME in the sample manifest with your own data, such as auth groups, SSL certs, and external URL


## Set the bosh environment

```
export BOSH_USER=`bbl director-username`
export BOSH_PASSWORD=`<PASSWORD>`
export BOSH_CA_CERT=`bbl director-ca-cert`
export BOSH_ENVIRONMENT=`bbl director-address`
```

## Upload releases<commit_msg>correct name of lb vm_extension<commit_after># Deploying Concourse
---

This document will walk through deploying a concourse clustered install to GCP using bbl and bosh.

## Prerequisites

* bbl
* A GCP Service Account key as described in README.md
* BBL up. e.g. ```bbl up --gcp-zone us-west1-a --gcp-region us-west1 --gcp-service-account-key service-account.key.json --gcp-project-id my-gcp-project-id --iaas gcp```
* This guide will assume the [Bosh v2 CLI](https://bosh.io/docs/cli-v2.html) is installed, but bosh v1 CLI will work, with some minor changes.

## Create load balancer

```
bbl create-lbs --type concourse
```

## Create a bosh deployment manifest

Scale instance types, disks and instance count based on your needs. Other sizes are available, see ```bosh cloud-config```.

1. Start with the sample manifest from the [Concourse documentation](http://concourse.ci/clusters-with-bosh.html)
2. Replace all ```vm_type: REPLACE_ME``` with ```vm_type: n1-standard-1```.
3. Add the vm_extension ```lb``` to the instance_group "web"
4. Add the property ```tls_bind_port: 443``` to the instance_group "web"
5. Add the vm_extension ```50GB_ephemeral_disk``` to the instance_group "worker"
6. Replace all ```persistent_disk_type: REPLACE_ME``` with ```persistent_disk_type: 5GB```
7. Fill out the remaining REPLACE_ME in the sample manifest with your own data, such as auth groups, SSL certs, and external URL


## Set the bosh environment

```
export BOSH_USER=`bbl director-username`
export BOSH_PASSWORD=`<PASSWORD>`
export BOSH_CA_CERT=`bbl director-ca-cert`
export BOSH_ENVIRONMENT=`bbl director-address`
```

## Upload releases
{'fraction_non_alphanumeric': 0.11952191235059761, 'fraction_numerical': 0.01225865767698437, 'mean_word_length': 4.716287215411558, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6382732', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1067, 'n_words': 381}