mirror of https://github.com/statping/statping
Created Cloud Foundry (markdown)
parent
48fa63cb08
commit
6cd84d00c1
|
@ -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.
|
Loading…
Reference in New Issue