Skip to content

anders617/heroku-buildpack-bazel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

heroku-buildpack-bazel

Heroku buildpack for Bazel. You can find the original buildback by Google here.

This fork has been tested against Scala and Java in production, and furthermore has support for poly-repo like build patterns. The BAZEL_BUILD_PATH environment variable allows you to specify any build target, so you can deploy the same repository to containers with different settings and run different applications accordingly.

Requirements

  1. WORKSPACE file in git-root. See the documentation on Bazel WORKSPACE.
  2. BAZEL_BUILD_PATH config variable containing the build-path of the {java, scala}_binary you want to run.

Default Procfile

The default Procfile is:

  web: .jdk/bin/java -jar app.jar
  worker: .jdk/bin/java -jar app.jar

This does not need to be included in your app. However, if you need custom JVM flags, simply include your custom Procfile with your application. Modify the line above with the flags you want.

Use this buildpack

heroku config:set BAZEL_BUILD_PATH=//path/to/your:bin
heroku buildpacks:set https://github.com/ThriveFinancial/heroku-buildpack-bazel

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%