Interface DockerBuildOptions

All Known Implementing Classes:
CRaCFinalDockerfile, MicronautDockerfile, NativeImageDockerfile

public interface DockerBuildOptions
Build options for Docker.
Since:
1.0.0
Author:
gkrocher
  • Method Details

    • getArgs

      @Input org.gradle.api.provider.ListProperty<String> getArgs()
      Returns:
      The arguments to use
    • getBaseImage

      @Input org.gradle.api.provider.Property<String> getBaseImage()
      Returns:
      The base image to use
    • getDefaultCommand

      @Input org.gradle.api.provider.Property<String> getDefaultCommand()
      Returns:
      The default command to use
    • getExposedPorts

      @Input org.gradle.api.provider.ListProperty<Integer> getExposedPorts()
      Returns:
      The exposed ports
    • getDockerfileTweaks

      @Internal org.gradle.api.provider.ListProperty<org.gradle.api.Action<? super Editor>> getDockerfileTweaks()
    • args

      DockerBuildOptions args(String... args)
      Arguments for the entrypoint.
      Parameters:
      args - The arguments
      Returns:
      This
    • baseImage

      DockerBuildOptions baseImage(String imageName)
      The base image to use.
      Parameters:
      imageName - The base image name
      Returns:
      This
    • exportPorts

      DockerBuildOptions exportPorts(Integer... ports)
      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

      default void editDockerfile(org.gradle.api.Action<? super Editor> action)
      Adds a dockerfile tweak.
      Parameters:
      action - the edition action