Awesome Open Source
Awesome Open Source

Heroku Buildpack for the JDK CircleCI

This is the official Heroku buildpack for OpenJDK. It only installs the JDK, and does not build an application. It is used by the Java, Scala, and Clojure buildpacks.

Usage from a Buildpack

This is how the buildpack is used from another buildpack:

JVM_BUILDPACK_URL="https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/jvm.tgz"
mkdir -p /tmp/jvm-common
curl --silent --location $JVM_BUILDPACK_URL | tar xzm -C /tmp/jvm-common --strip-components=1
source /tmp/jvm-common/bin/util
source /tmp/jvm-common/bin/java

install_java_with_overlay ${BUILD_DIR}

Standalone Usage

You may install the JVM buildpack into your app by running:

$ heroku buildpacks:set heroku/jvm

If you want to use the edge version (the code in this repo), run this instead:

$ heroku buildpacks:set https://github.com/heroku/heroku-buildpack-jvm-common.git

Then it may be used by itself, or with another buildpack using multiple buildpacks.

Run Tests Locally

Tests can be run and debugged locally by using the Circle CI CLI.

For example, to run Hatchet tests on heroku-18 run:

$ circleci local execute --job hatchet-heroku-18 \
    --env HEROKU_API_USER=$(heroku whoami) \
    --env HEROKU_API_KEY=$(heroku auth:token)

Available jobs are defined in .circleci/config.yml.

Costs

This command uses the credentials from your local heroku configuration. This means your account will be billed for any cost these tests incur. Proceed with caution.

License

Licensed under the MIT License. See LICENSE file.


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
shell (10,536
openjdk (23
heroku-buildpack (16