Add unpack field to specify a package used as layer

Closes #9
This commit is contained in:
Ettore Di Giacinto
2019-11-13 09:42:52 +01:00
parent 747d0ef9ac
commit d752c0572b
11 changed files with 199 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ type LuetCompilationSpec struct {
Seed string `json:"seed"`
Package pkg.Package `json:"-"`
OutputPath string `json:"-"` // Where the build processfiles go
Unpack bool `json:"unpack"`
}
func NewLuetCompilationSpec(b []byte, p pkg.Package) (CompilationSpec, error) {
@@ -50,6 +51,10 @@ func (cs *LuetCompilationSpec) BuildSteps() []string {
return cs.Steps
}
func (cs *LuetCompilationSpec) ImageUnpack() bool {
return cs.Unpack
}
func (cs *LuetCompilationSpec) GetPreBuildSteps() []string {
return cs.Prelude
}