Learn R Programming

containerit (version 0.6.0)

LabelSchemaFactory: Create Build-time labels according to Label Schema Convention

Description

This is a convenience function that generates method for conveniently creating metadata-labels with arguments according to schema version 1.0.0-rc.1

Usage

LabelSchemaFactory()

Arguments

Value

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

Details

For details about the Label Schema, see http://label-schema.org/rc1/

See Also

Other label: Label-class, Label_Maintainer, Label_SessionInfo, Label

Examples

Run this code
# NOT RUN {
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))


# }

Run the code above in your browser using DataLab