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/(.classfiles)root/(extra files)
Empty application layers are omitted.
- Alphabetic
- By Inheritance
- DockerContextGenerator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DockerContextGenerator(dependenciesLayerEntry: LayerEntry, snapshotDependenciesLayerEntry: LayerEntry, resourcesLayerEntry: LayerEntry, classesLayerEntry: LayerEntry, extraFilesLayerEntry: LayerEntry)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
IOExceptionif the export fails
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
setBaseImage(baseImage: String): DockerContextGenerator
Sets the base image for the
FROMdirective.Sets the base image for the
FROMdirective. This must be called before#generate.- baseImage
the base image.
- returns
this
-
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
-
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
-
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
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )