Package io.micronaut.build
Class DockerfileMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- io.micronaut.build.AbstractDockerMojo
-
- io.micronaut.build.DockerfileMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="dockerfile", requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class DockerfileMojo extends AbstractDockerMojo
Generates a
Dockerfile
depending on thepackaging
andmicronaut.runtime
properties, eg:mvn mn:dockerfile -Dpackaging=docker-native -Dmicronaut.runtime=lambda
- Since:
- 1.1
- Author:
- Álvaro Sánchez-Mariscal
-
-
Field Summary
Fields Modifier and Type Field Description static String
DOCKER_PACKAGING
-
Fields inherited from class io.micronaut.build.AbstractDockerMojo
appArguments, applicationConfigurationService, dockerService, jibConfigurationService, mainClass, mavenProject, micronautRuntime, nativeImageBuildArgs, staticNativeImage
-
-
Constructor Summary
Constructors Constructor Description DockerfileMojo(org.apache.maven.project.MavenProject mavenProject, DockerService dockerService, JibConfigurationService jibConfigurationService, ApplicationConfigurationService applicationConfigurationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
Methods inherited from class io.micronaut.build.AbstractDockerMojo
copyDependencies, getCmd, getFrom, getPort, getTags, graalVmJvmVersion, graalVmVersion, javaVersion
-
-
-
-
Field Detail
-
DOCKER_PACKAGING
public static final String DOCKER_PACKAGING
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DockerfileMojo
@Inject public DockerfileMojo(org.apache.maven.project.MavenProject mavenProject, DockerService dockerService, JibConfigurationService jibConfigurationService, ApplicationConfigurationService applicationConfigurationService)
-
-