fix(sandbox): remove tar file after extraction to avoid healthcheck false positives
This commit is contained in:
parent
369d004394
commit
9b23765848
|
|
@ -102,8 +102,8 @@ func (e *Sandbox) runWithTar(cmds []stage.Cmd, tarData []byte) ([]stage.Executor
|
||||||
|
|
||||||
tarFileName := "/w/__joj3_copyin.tar"
|
tarFileName := "/w/__joj3_copyin.tar"
|
||||||
script := fmt.Sprintf(
|
script := fmt.Sprintf(
|
||||||
"/bin/tar xf %s -C / --no-same-owner && exec \"$@\"",
|
"/bin/tar xf %s -C / --no-same-owner && rm %s && exec \"$@\"",
|
||||||
tarFileName,
|
tarFileName, tarFileName,
|
||||||
)
|
)
|
||||||
|
|
||||||
cmds[0].CopyIn[tarFileName] = stage.CmdFile{FileID: &fid}
|
cmds[0].CopyIn[tarFileName] = stage.CmdFile{FileID: &fid}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user