Package io.micronaut.gradle.docker
Interface DockerBuildOptions
- All Known Implementing Classes:
CRaCFinalDockerfile
,MicronautDockerfile
,NativeImageDockerfile
public interface DockerBuildOptions
Build options for Docker.
- Since:
- 1.0.0
- Author:
- gkrocher
-
Method Summary
Modifier and TypeMethodDescriptionArguments for the entrypoint.The base image to use.default void
editDockerfile
(org.gradle.api.Action<? super Editor> action) Adds a dockerfile tweak.exportPorts
(Integer... ports) org.gradle.api.provider.ListProperty<String>
getArgs()
org.gradle.api.provider.Property<String>
org.gradle.api.provider.Property<String>
org.gradle.api.provider.ListProperty<org.gradle.api.Action<? super Editor>>
org.gradle.api.provider.ListProperty<Integer>
org.gradle.api.provider.Property<String>
The working directory to use in the container.
-
Method Details
-
getArgs
- Returns:
- The arguments to use
-
getBaseImage
- Returns:
- The base image to use
-
getDefaultCommand
- Returns:
- The default command to use
-
getExposedPorts
- Returns:
- The exposed ports
-
getDockerfileTweaks
@Internal org.gradle.api.provider.ListProperty<org.gradle.api.Action<? super Editor>> getDockerfileTweaks() -
args
Arguments for the entrypoint.- Parameters:
args
- The arguments- Returns:
- This
-
baseImage
The base image to use.- Parameters:
imageName
- The base image name- Returns:
- This
-
exportPorts
- Parameters:
ports
- The ports to expose- Returns:
- The ports
-
getTargetWorkingDirectory
org.gradle.api.provider.Property<String> getTargetWorkingDirectory()The working directory to use in the container. Defaults to /home/app- Returns:
- the target directory
-
editDockerfile
Adds a dockerfile tweak.- Parameters:
action
- the edition action
-