mirror of
https://github.com/mudler/luet.git
synced 2025-09-04 08:45:40 +00:00
Add Separate tree for build dependency
Reuse the Recipe and extend it to read a separate tree for build dependencies. Also add accessors to compilespec to produce dockerfile image format.
This commit is contained in:
@@ -26,11 +26,23 @@ type Compiler interface {
|
||||
}
|
||||
|
||||
type CompilerBackend interface {
|
||||
Tree() pkg.Tree
|
||||
WithTree(pkg.Tree)
|
||||
BuildImage(name, path,dockerfileName string) error
|
||||
}
|
||||
|
||||
// CompilationSpec represent a compilation specification derived from a package
|
||||
type CompilationSpec interface {
|
||||
ToDocker() (string, error)
|
||||
RenderBuildImage() (string, error)
|
||||
WriteBuildImageDefinition(string) error
|
||||
|
||||
RenderStepImage(image string) (string, error)
|
||||
WriteStepImageDefinition(fromimage, path string) error
|
||||
|
||||
GetPackage() pkg.Package
|
||||
BuildSteps() []string
|
||||
|
||||
GetSeedImage() string
|
||||
SetSeedImage(string)
|
||||
|
||||
GetImage() string
|
||||
SetImage(string)
|
||||
}
|
||||
|
Reference in New Issue
Block a user