@CompileStatic class DockerSpringBootApplication extends DockerConventionJvmApplicationExtension
The extension for configuring a Spring Boot application via the DockerSpringBootApplicationPlugin.
Enhances the extension DockerExtension as child DSL element.
The following example demonstrates the use of the extension in a build script using the Groovy DSL:
docker { springBootApplication { baseImage = 'openjdk:8-alpine' maintainer = 'Benjamin Muschko "benjamin.muschko@gmail.com"' ports = [9090, 8080] images = ['awesome-spring-boot:1.115', 'awesome-spring-boot:latest'] jvmArgs = ['-Dspring.profiles.active=production', '-Xmx2048m'] } }
Constructor and description |
---|
DockerSpringBootApplication
(ObjectFactory objectFactory) |