类 EphemeralBuilder
java.lang.Object
cn.taketoday.buildpack.platform.build.EphemeralBuilder
A short-lived builder that is created for each
Lifecycle run.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Scott Frederick, Harry Yang
-
字段概要
字段修饰符和类型字段说明private final ImageArchive(专用程序包) static final Stringprivate final BuilderMetadataprivate final BuildOwnerprivate final Creator -
构造器概要
构造器构造器说明EphemeralBuilder(BuildOwner buildOwner, Image builderImage, ImageReference targetImage, BuilderMetadata builderMetadata, Creator creator, Map<String, String> env, Buildpacks buildpacks) Create a newEphemeralBuilderinstance. -
方法概要
修饰符和类型方法说明(专用程序包) ImageArchiveReturn the contents of ephemeral builder for passing to Docker.(专用程序包) BuilderMetadataReturn the builder meta-data that was used to create this ephemeral builder.(专用程序包) OwnerReturn the build owner that should be used for written content.private LayergetEnvLayer(Map<String, String> env) (专用程序包) ImageReferencegetName()Return the name of this archive as tagged in Docker.toString()private voidupdateMetadata(BuilderMetadata.Update update)
-
字段详细资料
-
BUILDER_FOR_LABEL_NAME
- 另请参阅:
-
buildOwner
-
builderMetadata
-
archive
-
creator
-
-
构造器详细资料
-
EphemeralBuilder
EphemeralBuilder(BuildOwner buildOwner, Image builderImage, ImageReference targetImage, BuilderMetadata builderMetadata, Creator creator, Map<String, String> env, Buildpacks buildpacks) throws IOExceptionCreate a newEphemeralBuilderinstance.- 参数:
buildOwner- the build ownerbuilderImage- the base builder imagetargetImage- the image being builtbuilderMetadata- the builder metadatacreator- the builder creatorenv- the builder envbuildpacks- an optional set of buildpacks to apply- 抛出:
IOException- on IO error
-
-
方法详细资料
-
updateMetadata
-
getEnvLayer
- 抛出:
IOException
-
getName
ImageReference getName()Return the name of this archive as tagged in Docker.- 返回:
- the ephemeral builder name
-
getBuildOwner
Owner getBuildOwner()Return the build owner that should be used for written content.- 返回:
- the builder owner
-
getBuilderMetadata
BuilderMetadata getBuilderMetadata()Return the builder meta-data that was used to create this ephemeral builder.- 返回:
- the builder meta-data
-
getArchive
ImageArchive getArchive()Return the contents of ephemeral builder for passing to Docker.- 返回:
- the ephemeral builder archive
-
toString
-