Description Usage Details Value See Also Examples
View source: R/LabelSchemaFactory.R
This is a convenience function that generates method for conveniently creating metadata-labels with arguments according to schema version 1.0.0-rc.1
1 |
For details about the Label Schema, see http://label-schema.org/rc1/
The returned function alows to create labels using the defined label names, e.g. version for org.label-schema.version. For convenience, dashes are replaced by underscores in argument names. Also, the schema-version is set by default as part of the label.
The names that can be used according to are the following:
schema_version, version, build_date, name, description, usage, url, vcs_url, vcs_ref, vendor, docker.cmd, docker.cmd.devel, docker.cmd.test, docker.debug, docker.cmd.help, docker.params, rkt.cmd, rkt.cmd.devel, rkt.cmd.test, rkt.debug, rkt.cmd.help, rkt.params
Other label:
Label-class
,
Label_Maintainer()
,
Label_SessionInfo()
,
Label
1 2 3 4 5 6 7 8 | the_dockerfile <- dockerfile(clean_session())
factory <- LabelSchemaFactory()
label <- factory(name = "ImageName",
description = "Description of the image",
build_date = Sys.time()
)
addInstruction(the_dockerfile) <- label
cat(format(the_dockerfile))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.