Based on Kong version 0.7.0 patched for compatibility with Heroku.
Deploy the heroku-kong app to get started.
PORTexposed on the app/dyno
KONG_CLUSTER_SECRETsymmetric encryption key
serf keygen; requires Serf
KONG_GIT_URLgit repo URL for Kong source
KONG_GIT_COMMITISHgit branch/tag/commit for Kong source
DISABLE_BUILPACK_CACHEwhen set to true, will delete the old directory handling kong source code.
`username:password` must be the same for all instances. * `CASSANDRA_TRUSTED_CERT` (SSL is disabled unless provided) * [Instaclustr add-on](https://elements.heroku.com/addons/instaclustr) config vars * `IC_CONTACT_POINTS` ```
* `IC_CERTIFICATE` (SSL is disabled unless provided)
The first time this buildpack builds an app, the build time will be significantly longer as Kong and its dependencies are compiled from source. The compiled artifacts are cached to speed up subsequent builds.
We vendor the sources for Lua, LuaRocks, & OpenResty/Nginx and compile them with a writable
/app/.heroku prefix. Attempts to bootstrap Kong on Heroku using existing Lua & apt buildpacks failed due to their compile-time prefixes of
/usr/local which is read-only in a dyno.
OpenSSL 1.0.2 (required by OpenResty) is also compiled from source, as the versions included in the Cedar 14 stack & apt packages for Ubuntu/Trusty are too old.
Kong is installed from a forked source repo that includes minimal changes for compatibility with the Heroku runtime.
This buildpack caches its compilation artifacts from the sources in
vendor/. Changes to the sources in
vendor/ will be detected and the cache ignored.
If you need to trigger a full rebuild without changing the source, use the Heroku Repo CLI plugin to purge the cache:
Copy the snippet above into CLI.