deb2layer

package
v0.0.0-...-18cb69e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

func CopyFileFromDeb(filename string, debReader io.Reader, writer io.Writer) error

CopyFileFromDeb copies a file from the debian file to a writer.

func DebToLayer

func DebToLayer(debReader io.Reader, writer io.Writer) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL