Skip to content

Commit

Permalink
fix(knuu): creates context folder (#266)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Ramon Mañes <[email protected]>
  • Loading branch information
tty47 authored Apr 11, 2024
1 parent 3ab9345 commit 42dfabd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/container/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func NewBuilderFactory(imageName, buildContext string, imageBuilder builder.Buil
if err != nil {
return nil, fmt.Errorf("failed to create docker client: %w", err)
}
err = os.MkdirAll(buildContext, 0755)
if err != nil {
return nil, fmt.Errorf("failed to create context directory: %w", err)
}
return &BuilderFactory{
imageNameFrom: imageName,
cli: cli,
Expand Down

0 comments on commit 42dfabd

Please sign in to comment.