Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrDuplicateSection is returned when there is a duplicate deb package // sections ErrDuplicateSection = fmt.Errorf("duplicate section") // ErrSectionNotFound is returned when an expected section is not found ErrSectionNotFound = fmt.Errorf("section not found") )
Functions ¶
func CopyFileFromDeb ¶
CopyFileFromDeb copies a file from the debian file to a writer.
func DebToLayer ¶
DebToLayer convernts a deb package into a tar file that can be used as a layer in an OCI image. Including adding the appropriate files for dpkg to track the package.
This approach has a few limitations:
- We don't pay attention to the metadata in the control file, including the additional dependencies that may be decalared or checking that the architecture is correct.
- Any package mantainer scripts will not be run, which breaks some packages entirely.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.