NAME
Container::Builder::Layer::DebianPackageFile - Make a container layer based upon a Debian package file.
DESCRIPTION
Container::Builder::Layer::DebianPackageFile implements Container::Builder::Layer and can be used to create container layers based upon a debian package file.
METHODS
- new(file => 'file.txt', dest => '/app/file.txt', mode => 0644, user => 1337, group => 1337)
- new(data => 'Hallo vriendjes en vriendinnetjes', dest => '/app/file.txt', mode => 0644, user => 1337, group => 1337)
-
Create a
Container::Builder::Layer::SingleFileobject. Pass in either the filename withfileor pass the data directly as a scalar withdata. Thedestis the location of the file in the container layer andmode,userandgroupcontrol the permissions. - generate_artifact()
-
Returns a TAR file that contains the file.
- get_media_type()
-
Return the media type of the container. This is the mime type of the layer. Possibilities are
application/vnd.oci.image.layer.v1.tarorapplication/vnd.oci.image.layer.v1.tar+gzip. - get_digest()
-
Returns the SHA256 digest of the generated layer.
- get_size()
-
Returns the size (length) of the generated layer.
AUTHOR
Adriaan Dens <adri@cpan.org>
COPYRIGHT
Copyright 2026- Adriaan Dens
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
- Part of the Container::Builder module.
- https://github.com/opencontainers/image-spec/blob/main/layer.md