This project demonstrates the capabilities of the Badass Runtime Plugin by creating a custom runtime image of the Spring PetClinic.
From the releases page download the archived custom runtime image for your operating system.
Unpack the archive and execute the spring-petclinic
script found in the spring-petclinic-image/bin
directory.
Then, access http://localhost:8080/ in your browser.
Gradle must use Java 11 in order to be able to build the project. To create the custom runtime image execute:
./gradlew runtimeZip
This command creates the runtime image in the build/spring-petclinic-image
directory and a zip file of it in build/image-zip
.
The start scripts are found in the build/spring-petclinic-image/bin
directory.