mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 01:29:07 +00:00
Merge pull request #48 from justincormack/dir-fixes
Fix build in directory
This commit is contained in:
commit
e8dc61e910
@ -99,10 +99,10 @@ func build(args []string) {
|
|||||||
log.Fatalf("Invalid config: %v", err)
|
log.Fatalf("Invalid config: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
image := buildInternal(m, filepath.Join(*buildDir, name), *buildPull)
|
image := buildInternal(m, *buildPull)
|
||||||
|
|
||||||
log.Infof("Create outputs:")
|
log.Infof("Create outputs:")
|
||||||
err = outputs(name, image, buildOut)
|
err = outputs(filepath.Join(*buildDir, name), image, buildOut)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Error writing outputs: %v", err)
|
log.Fatalf("Error writing outputs: %v", err)
|
||||||
}
|
}
|
||||||
@ -156,7 +156,7 @@ func enforceContentTrust(fullImageName string, config *TrustConfig) bool {
|
|||||||
|
|
||||||
// Perform the actual build process
|
// Perform the actual build process
|
||||||
// TODO return error not panic
|
// TODO return error not panic
|
||||||
func buildInternal(m Moby, name string, pull bool) []byte {
|
func buildInternal(m Moby, pull bool) []byte {
|
||||||
w := new(bytes.Buffer)
|
w := new(bytes.Buffer)
|
||||||
iw := tar.NewWriter(w)
|
iw := tar.NewWriter(w)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user