more debugging

This commit is contained in:
2022-10-30 22:01:48 +01:00
parent 9ffb6b71bd
commit 33b60cea3b
4 changed files with 11 additions and 2 deletions

View File

@@ -81,7 +81,13 @@ func (p *Pipeline) WithGolangBin(opts *GolangBinOpts) *Pipeline {
usrbin := fmt.Sprintf("/usr/bin/%s", opts.BinName)
c = container.MountFileFromLoaded(c, bin, tempmount)
c = c.Exec(dagger.ContainerExecOpts{
Args: []string{"cp", tempmount, usrbin},
Args: []string{
"sh",
"-c",
fmt.Sprintf(
"'ls %s && cp %s, %s'", tempmount, tempmount, usrbin,
),
},
})
finalImage = c.WithEntrypoint([]string{usrbin})