Created Cloud Foundry (markdown)

master
Hunter Long 2019-04-03 07:53:11 -07:00
parent 48fa63cb08
commit 6cd84d00c1
1 changed files with 41 additions and 0 deletions

41
Cloud-Foundry.md Normal file

@ -0,0 +1,41 @@
### Installation
For OSX, you can install the [Cloud Foundry CLI](https://github.com/cloudfoundry/cli) tool from Brew.
```shell
brew install cloudfoundry/tap/cf-cli
```
### Statping Yaml Config
You can include multiple environment variables to the configg file. If you include `DB_CONN` Statping will attempt to automatically connect to that database. View the [Full List of Environment Variables](https://github.com/hunterlong/statping/wiki/Config-with-.env-File) to fully customize this config.
```yaml
applications:
- name: statping
docker:
image: hunterlong/statping
timeout: 180
env:
DB_CONN: sqlite / mysql / postgres
DB_HOST: ...
DB_PORT: ...
DB_DATABASE: ...
DB_USER: ...
DB_PASS: ...
```
Save this file as `manifest.yml` and then run: `cf push`
### Advanced Yaml Config
```yaml
applications:
- name: statping
docker:
image: hunterlong/statping:((version))
timeout: 180
env: ((env))
```
Then you can run a command like:
```shell
cf push --var version=v0.80.53 --var env='DB_CONN: sqlite'
```
Thank you [@giner](https://github.com/giner) for creating this documentation.