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