Package org.openrewrite.docker
Class AddOciLabels
java.lang.Object
org.openrewrite.Recipe
org.openrewrite.docker.AddOciLabels
- All Implemented Interfaces:
Cloneable
public class AddOciLabels
extends org.openrewrite.Recipe
Adds standard OCI (Open Container Initiative) image labels to a Dockerfile.
OCI defines a standard set of labels for container images that provide metadata such as the image title, description, version, creation time, source repository, and license information.
The standard labels are prefixed with org.opencontainers.image. and include:
title- Human-readable title of the imagedescription- Human-readable description of the imageversion- Version of the packaged softwarecreated- Date and time the image was built (RFC 3339)revision- Source control revision identifiersource- URL to get source code for building the imageurl- URL to find more information about the imagevendor- Name of the distributing entity, organization, or individuallicenses- License(s) under which contained software is distributedauthors- Contact details of the people or organization responsible
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openrewrite.Recipe
org.openrewrite.Recipe.Builder, org.openrewrite.Recipe.DelegatingRecipe -
Field Summary
Fields inherited from class org.openrewrite.Recipe
contributors, examples, PANIC -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openrewrite.Recipe
addDataTable, builder, buildRecipeList, causesAnotherCycle, clone, createRecipeDescriptor, equals, getContributors, getDataTableDescriptors, getDescriptor, getEstimatedEffortPerOccurrence, getExamples, getInstanceName, getInstanceNameSuffix, getJacksonPolymorphicTypeTag, getMaintainers, getName, getTags, getVisitor, hashCode, maxCycles, noop, onComplete, run, run, run, setContributors, setExamples, validate, validateAll, validateAll, withOptions
-
Constructor Details
-
AddOciLabels
public AddOciLabels()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayNamein classorg.openrewrite.Recipe
-
getDescription
- Specified by:
getDescriptionin classorg.openrewrite.Recipe
-
validate
- Overrides:
validatein classorg.openrewrite.Recipe
-
getRecipeList
- Overrides:
getRecipeListin classorg.openrewrite.Recipe
-