@Mojo(name="dockerfile", requiresDependencyResolution=COMPILE_PLUS_RUNTIME) public class DockerfileMojo extends AbstractDockerMojo
Generates a Dockerfile
depending on the packaging
and micronaut.runtime
properties.
mvn mn:dockerfile -Dpackaging=docker-native -Dmicronaut.runtime=lambda
Modifier and Type | Field and Description |
---|---|
static String |
DOCKERFILE |
static String |
DOCKERFILE_AWS_CUSTOM_RUNTIME |
static String |
DOCKERFILE_CRAC |
static String |
DOCKERFILE_CRAC_CHECKPOINT |
static String |
DOCKERFILE_CRAC_CHECKPOINT_FILE |
static String |
DOCKERFILE_NATIVE |
static String |
DOCKERFILE_NATIVE_DISTROLESS |
static String |
DOCKERFILE_NATIVE_ORACLE_CLOUD |
static String |
DOCKERFILE_NATIVE_STATIC |
appArguments, applicationConfigurationService, ARM_ARCH, baseImageRun, DEFAULT_BASE_IMAGE_GRAALVM_RUN, dockerService, jibConfigurationService, LATEST_TAG, mainClass, mavenProject, micronautRuntime, MOSTLY_STATIC_NATIVE_IMAGE_GRAALVM_FLAG, nativeImageBuildArgs, staticNativeImage, X86_64_ARCH
Constructor and Description |
---|
DockerfileMojo(org.apache.maven.project.MavenProject mavenProject,
DockerService dockerService,
JibConfigurationService jibConfigurationService,
ApplicationConfigurationService applicationConfigurationService) |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
copyDependencies, getCmd, getFrom, getFromImage, getGraalVmBuildArgs, getPort, getTags, graalVmArch, graalVmJvmVersion, graalVmVersion, javaVersion
public static final String DOCKERFILE
public static final String DOCKERFILE_AWS_CUSTOM_RUNTIME
public static final String DOCKERFILE_NATIVE
public static final String DOCKERFILE_CRAC
public static final String DOCKERFILE_CRAC_CHECKPOINT
public static final String DOCKERFILE_CRAC_CHECKPOINT_FILE
public static final String DOCKERFILE_NATIVE_DISTROLESS
public static final String DOCKERFILE_NATIVE_STATIC
public static final String DOCKERFILE_NATIVE_ORACLE_CLOUD
@Inject public DockerfileMojo(org.apache.maven.project.MavenProject mavenProject, DockerService dockerService, JibConfigurationService jibConfigurationService, ApplicationConfigurationService applicationConfigurationService)
Copyright © 2020–2023 Micronaut. All rights reserved.