mostrar errores de runner

This commit is contained in:
Cat /dev/Nulo 2023-01-23 11:40:47 -03:00
parent 21c84c9f6e
commit 644e73f037

View file

@ -95,13 +95,17 @@ https://dl-cdn.alpinelinux.org/alpine/v3.17/community`), 0600); err != nil {
log.Println(strings.Join(params, " ")) log.Println(strings.Join(params, " "))
cmd = exec.Command("bwrap", append(params, cmd = exec.Command("bwrap", append(params,
"apk", "add", "busybox", "busybox-suid", "libc-utils", "alpine-baselayout", "alpine-conf", "alpine-release")...) "apk", "add", "--quiet", "busybox", "busybox-suid", "libc-utils", "alpine-baselayout", "alpine-conf", "alpine-release")...)
cmd.Stdout = os.Stderr
cmd.Stderr = os.Stderr
if err = cmd.Run(); err != nil { if err = cmd.Run(); err != nil {
return fmt.Errorf("bwrap apk add: %w", err) return fmt.Errorf("bwrap apk add: %w", err)
} }
cmd = exec.Command("bwrap", append(params, cmd = exec.Command("bwrap", append(params,
"--uid", "0", "--uid", "0",
"adduser", "-u", "1000", "-D", "repro")...) "adduser", "-u", "1000", "-D", "repro")...)
cmd.Stdout = os.Stderr
cmd.Stderr = os.Stderr
if err = cmd.Run(); err != nil { if err = cmd.Run(); err != nil {
return fmt.Errorf("bwrap adduser repro: %w", err) return fmt.Errorf("bwrap adduser repro: %w", err)
} }