Skip to content

Latest commit

 

History

History

gradle

Java Gradle Sample Application

See prerequisites of this sample.

Building

pack build applications/gradle

Alternatively, if you want to attach a gradle.properties and/or a gradle-wrapper.properties file to pass additional configuration to Gradle (Wrapper).

pack build applications/gradle --volume $(pwd)/bindings:/platform/bindings

The command above will use:

  • the sample gradle.properties file from this repo. It may be more useful to copy your local gradle.properties file first.
cp ~/.gradle/gradle.properties java/gradle/bindings/gradle/gradle.properties
pack build applications/gradle --volume $(pwd)/bindings:/platform/bindings
  • the sample gradle-wrapper.properties file from this repo. It may be more useful to copy your local gradle-wrapper.properties file first.
cp ~/gradle/wrapper/gradle-wrapper.properties java/gradle/bindings/gradle-wrapper/gradle-wrapper.properties
pack build applications/gradle --volume $(pwd)/bindings:/platform/bindings

## Running

```bash
docker run --rm --tty --publish 8080:8080 applications/gradle

Viewing

curl -s http://localhost:8080/actuator/health | jq .