Packages

c

com.google.cloud.tools.jib.docker

DockerContextGenerator

class DockerContextGenerator extends AnyRef

Generates a Docker context that mimics how Jib builds the image.

The image consists of a base image layer and 5 application layers under the directories:

  • libs/ (dependency jars)
  • snapshot-libs/ (snapshot dependency jars)
  • resources/ (resource files)
  • classes/ (.class files)
  • root/ (extra files)

Empty application layers are omitted.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DockerContextGenerator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DockerContextGenerator(dependenciesLayerEntry: LayerEntry, snapshotDependenciesLayerEntry: LayerEntry, resourcesLayerEntry: LayerEntry, classesLayerEntry: LayerEntry, extraFilesLayerEntry: LayerEntry)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def generate(targetDirectory: Path): Unit

    Creates the Docker context in #targetDirectory.

    Creates the Docker context in #targetDirectory.

    targetDirectory

    the directory to generate the Docker context in

    Exceptions thrown

    IOException if the export fails

  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def setBaseImage(baseImage: String): DockerContextGenerator

    Sets the base image for the FROM directive.

    Sets the base image for the FROM directive. This must be called before #generate.

    baseImage

    the base image.

    returns

    this

  17. def setExposedPorts(exposedPorts: List[String]): DockerContextGenerator

    Sets the exposed ports.

    Sets the exposed ports.

    exposedPorts

    the list of port numbers/port ranges to expose

    returns

    this

  18. def setJavaArguments(javaArguments: List[String]): DockerContextGenerator

    Sets the arguments used in the CMD.

    Sets the arguments used in the CMD.

    javaArguments

    the list of arguments to pass into main.

    returns

    this

  19. def setJvmFlags(jvmFlags: List[String]): DockerContextGenerator

    Sets the JVM flags used in the ENTRYPOINT.

    Sets the JVM flags used in the ENTRYPOINT.

    jvmFlags

    the jvm flags.

    returns

    this

  20. def setMainClass(mainClass: String): DockerContextGenerator

    Sets the main class used in the ENTRYPOINT.

    Sets the main class used in the ENTRYPOINT.

    mainClass

    the name of the main class.

    returns

    this

  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped