Group a set of package build spec with templating
Collections are a special superset of packages. To define a collection, instead of using a
definition.yaml file, create a
collection.yaml file with a list of packages:
Complete source code: https://github.com/mudler/luet/blob/master/tests/fixtures/shared_templates/test/collection.yaml
packages: - category: "test" name: "foo" version: "1.0" - category: "test" name: "bar" version: "1.0"
Packages under a collection shares the same
finalize.yaml, so a typical package layout can be:
collection/ collection.yaml build.yaml finalize.yaml ... additional files in the build context
Luet during the build phase, will treat packages of a collection individually. A collection is a way to share the same build process across different packages.
The templating mechanism can be used in collections as well, and each stanza in
packages is used to interpolate each single package.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified February 2, 2023: :arrow_up: Bump github.com/opencontainers/runc from 1.1.1 to 1.1.2 (#322) (fd698e8)