Skip to content

Commit

Permalink
Fix build driver init
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentaTomas committed Sep 19, 2023
1 parent e51fef6 commit 0185e56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions packages/env-build-task-driver/internal/env/rootfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ func (r *Rootfs) buildDockerImage(ctx context.Context, tracer trace.Tracer) erro
},
)

// Handle fuse mount

// TODO: Stream the logs somewhere
_, err = io.Copy(os.Stdout, buildResponse.Body)
if err != nil {
Expand Down Expand Up @@ -148,7 +146,9 @@ func (r *Rootfs) createRootfsFile(ctx context.Context, tracer trace.Tracer) erro
telemetry.ReportEvent(childCtx, "opened envd file")

// Copy envd to the container
err = r.client.CopyToContainer(childCtx, cont.ID, envdRootfsPath, envdFile, types.CopyToContainerOptions{})
err = r.client.CopyToContainer(childCtx, cont.ID, envdRootfsPath, envdFile, types.CopyToContainerOptions{
AllowOverwriteDirWithFile: true,
})
if err != nil {
return fmt.Errorf("error copying envd to container %v", err)
}
Expand Down
4 changes: 2 additions & 2 deletions packages/env-build-task-driver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func main() {
flag.Parse()

if envID != nil && buildID != nil {
driver.TestBuildProcess(*envID, *buildID)
} else {
configurePlugin()
} else {
driver.TestBuildProcess(*envID, *buildID)
}
}

0 comments on commit 0185e56

Please sign in to comment.