See prerequisites of this sample.
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 localgradle.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 localgradle-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
curl -s http://localhost:8080/actuator/health | jq .