java.lang.Object
cn.taketoday.buildpack.platform.build.Phase

class Phase extends Object
An individual build phase executed as part of a Lifecycle run.
从以下版本开始:
4.0
作者:
Phillip Webb, Scott Frederick, Jeroen Meijer, Harry Yang
  • 字段详细资料

    • name

      private final String name
    • verboseLogging

      private final boolean verboseLogging
    • daemonAccess

      private boolean daemonAccess
    • args

      private final List<String> args
    • bindings

      private final List<Binding> bindings
    • env

      private final Map<String,String> env
    • securityOptions

      private final List<String> securityOptions
    • networkMode

      private String networkMode
  • 构造器详细资料

    • Phase

      Phase(String name, boolean verboseLogging)
      Create a new Phase instance.
      参数:
      name - the name of the phase
      verboseLogging - if verbose logging is requested
  • 方法详细资料

    • withDaemonAccess

      void withDaemonAccess()
      Update this phase with Docker daemon access.
    • withLogLevelArg

      void withLogLevelArg()
      Update this phase with a debug log level arguments if verbose logging has been requested.
    • withArgs

      void withArgs(Object... args)
      Update this phase with additional run arguments.
      参数:
      args - the arguments to add
    • withBinding

      void withBinding(Binding binding)
      Update this phase with an addition volume binding.
      参数:
      binding - the binding
    • withEnv

      void withEnv(String name, String value)
      Update this phase with an additional environment variable.
      参数:
      name - the variable name
      value - the variable value
    • withNetworkMode

      void withNetworkMode(String networkMode)
      Update this phase with the network the build container will connect to.
      参数:
      networkMode - the network
    • withSecurityOption

      void withSecurityOption(String option)
      Update this phase with a security option.
      参数:
      option - the security option
    • getName

      String getName()
      Return the name of the phase.
      返回:
      the phase name
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • apply

      void apply(ContainerConfig.Update update)
      Apply this phase settings to a ContainerConfig update.
      参数:
      update - the update to apply the phase to