See prerequisites of this sample.
pack build applications/gradleAlternatively, 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/bindingsThe command above will use:
- the sample
gradle.propertiesfile from this repo. It may be more useful to copy your localgradle.propertiesfile first.
cp ~/.gradle/gradle.properties java/gradle/bindings/gradle/gradle.properties
pack build applications/gradle --volume $(pwd)/bindings:/platform/bindings- the sample
gradle-wrapper.propertiesfile from this repo. It may be more useful to copy your localgradle-wrapper.propertiesfile 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/gradlecurl -s http://localhost:8080/actuator/health | jq .