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 => 'mypackage.deb', compress => 1)
- new(data => 'a valid deb archive string', compress => 1)
-
Create a
Container::Builder::Layer::DebianPackageFileobject. Pass in either the filename withfileor pass the debian archive data as a scalar withdata. Thecompressargument controls whether we return a Gzipped archive as a layer or a plain TAR file. - generate_artifact()
-
Returns a TAR (gzipped or not) file that is based upon the Debian package
data.tar.xzarchive contents. This method will unpack the.debusing Ar. And then decompress the XZ archive to get the TAR data from the Debian package. - 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