Package com.bmuschko.gradle.docker
Class DockerJavaApplication
java.lang.Object
com.bmuschko.gradle.docker.DockerConventionJvmApplicationExtension
com.bmuschko.gradle.docker.DockerJavaApplication
The extension for configuring a Java application via the
DockerJavaApplicationPlugin
.
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 { javaApplication { baseImage = 'dockerfile/java:openjdk-7-jre' maintainer = 'Benjamin Muschko "benjamin.muschko@gmail.com"' ports = [9090, 5701] tag = 'jettyapp:1.115' jvmArgs = ['-Xms256m', '-Xmx2048m'] } }
-
Constructor Summary
-
Method Summary
Methods inherited from class com.bmuschko.gradle.docker.DockerConventionJvmApplicationExtension
getArgs, getBaseImage, getImages, getJvmArgs, getMainClassName, getMaintainer, getPorts, getUser
-
Constructor Details
-
DockerJavaApplication
-