Package com.bmuschko.gradle.docker
Class DockerSpringBootApplication
java.lang.Object
com.bmuschko.gradle.docker.DockerConventionJvmApplicationExtension
com.bmuschko.gradle.docker.DockerSpringBootApplication
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'] } }
- Since:
- 3.4.5
-
Constructor Summary
-
Method Summary
Methods inherited from class com.bmuschko.gradle.docker.DockerConventionJvmApplicationExtension
getArgs, getBaseImage, getImages, getJvmArgs, getMainClassName, getMaintainer, getPorts, getUser
-
Constructor Details
-
DockerSpringBootApplication
-