Skip to content

Commit

Permalink
workaround the unpacking hang issue (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
inorthtyphoon authored Aug 21, 2018
1 parent c0a331e commit d6e2de9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion builder/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ func (b *Builder) scrapeDependencies(ctx context.Context, volName string, stepWo
scannerImageName,
"scan",
"-f", dockerfile,
"--destination", outputDir,
// NOTE (bindu): unpacking a tar file including .git folder can hang if --destination is a relative path
// Use the absolute path to workaround the issue.
"--destination", path.Join(normalizeWorkDir(stepWorkDir), outputDir),
context,
}

Expand Down

0 comments on commit d6e2de9

Please sign in to comment.