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 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 Details

    • DockerSpringBootApplication

      public DockerSpringBootApplication(ObjectFactory objectFactory)