Skip to content

Cloud Foundry

Hunter Long edited this page Dec 22, 2021 · 6 revisions

Installation

For OSX, you can install the Cloud Foundry CLI tool from Brew.

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 to fully customize this config.

applications:
- name: statping
  docker:
    image: statping/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

applications:
- name: statping
  docker:
    image: statping/statping:((version))
  timeout: 180
  env: ((env))

Then you can run a command like:

cf push --var version=v0.80.53 --var env='DB_CONN: sqlite'

Thank you @giner for creating this documentation.