<commit_before># New deployment procedure for cf-mysql-release

 
## Getting Started

* [bosh go CLI](https://github.com/cloudfoundry/bosh-cli): `brew install chendrix/tap/gobosh`
* [cf-mysql-release](https://github.com/cloudfoundry/cf-mysql-release) repository
* Prepare a [cloud-config](http://bosh.io/docs/cloud-config.html) and update your environment to use it


## Upload Release

`gobosh -e <environment> upload-release https://bosh.io/d/github.com/cloudfoundry/cf-mysql-release`


## Prepare Variables File

 We provide a default set of variables intended for a local bosh-lite environment in a var-file called 
 [`cf-mysql-release/manifest-generation/bosh2.0/bosh-lite/default-vars.yml`](https://github.com/cloudfoundry/cf-mysql-release/blob/develop/manifest-generation/bosh2.0/bosh-lite/default-vars.yml)

Use this as an example for your environment-specific var-file, e.g. `cf-mysql-vars.yml`


## Prepare Operations File

Any changes to our provided [v2 schema manifest template](https://github.com/cloudfoundry/cf-mysql-release/blob/develop/manifest-generation/cf-mysql-template-v2.yml) 
should be added to an environment-specific ops-file, e.g. `cf-mysql-overrides.yml`

For instance, our template assumes your cloud-config has a persistent-disk type named "large". If your cloud-config specifies a type "small", you would add the following to `cf-mysql-overrides.yml`:

```yml
---
- type: replace
  path: /instance_groups/name=mysql/persistent_disk_type
  value: small
```


## Deploy

```bash
gobosh \
  -e <environment> \
  deploy \
  "${CF_MYSQL_RELEASE_DIR}/manifest-generation/cf-mysql-template-v2.yml" \
  -l "cf-mysql-vars.yml" \
  -o "cf-mysql-overrides.yml"
```


<commit_msg>Add deployment flag to gobosh command<commit_after># New deployment procedure for cf-mysql-release

 
## Getting Started

* [bosh go CLI](https://github.com/cloudfoundry/bosh-cli): `brew install chendrix/tap/gobosh`
* [cf-mysql-release](https://github.com/cloudfoundry/cf-mysql-release) repository
* Prepare a [cloud-config](http://bosh.io/docs/cloud-config.html) and update your environment to use it


## Upload Release

`gobosh -e <environment> upload-release https://bosh.io/d/github.com/cloudfoundry/cf-mysql-release`


## Prepare Variables File

 We provide a default set of variables intended for a local bosh-lite environment in a var-file called 
 [`cf-mysql-release/manifest-generation/bosh2.0/bosh-lite/default-vars.yml`](https://github.com/cloudfoundry/cf-mysql-release/blob/develop/manifest-generation/bosh2.0/bosh-lite/default-vars.yml)

Use this as an example for your environment-specific var-file, e.g. `cf-mysql-vars.yml`


## Prepare Operations File

Any changes to our provided [v2 schema manifest template](https://github.com/cloudfoundry/cf-mysql-release/blob/develop/manifest-generation/cf-mysql-template-v2.yml) 
should be added to an environment-specific ops-file, e.g. `cf-mysql-overrides.yml`

For instance, our template assumes your cloud-config has a persistent-disk type named "large". If your cloud-config specifies a type "small", you would add the following to `cf-mysql-overrides.yml`:

```yml
---
- type: replace
  path: /instance_groups/name=mysql/persistent_disk_type
  value: small
```


## Deploy

```bash
gobosh \
  -e <environment> \
  -d <deployment name> \
  deploy \
  "${CF_MYSQL_RELEASE_DIR}/manifest-generation/cf-mysql-template-v2.yml" \
  -l "cf-mysql-vars.yml" \
  -o "cf-mysql-overrides.yml"
```



{'fraction_non_alphanumeric': 0.13395187010727747, 'fraction_numerical': 0.004059147579008408, 'mean_word_length': 4.243161094224924, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 10, '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': '4490277', 'n_tokens_mistral': 1195, 'n_tokens_neox': 1121, 'n_words': 270}