Package com.bmuschko.gradle.docker
Class DockerSpringBootApplication
- java.lang.Object
-
- com.bmuschko.gradle.docker.DockerConventionJvmApplicationExtension
-
- com.bmuschko.gradle.docker.DockerSpringBootApplication
-
public class DockerSpringBootApplication extends DockerConventionJvmApplicationExtension
The extension for configuring a Spring Boot application via theDockerSpringBootApplicationPlugin
.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
Constructors Constructor Description DockerSpringBootApplication(ObjectFactory objectFactory)
-
Method Summary
-
Methods inherited from class com.bmuschko.gradle.docker.DockerConventionJvmApplicationExtension
getArgs, getBaseImage, getImages, getJvmArgs, getMainClassName, getMaintainer, getPorts, getUser
-
-
-
-
Constructor Detail
-
DockerSpringBootApplication
public DockerSpringBootApplication(ObjectFactory objectFactory)
-
-