mirror of
https://github.com/thegeeklab/drone-docker-buildx.git
synced 2024-11-05 04:20:41 +00:00
27 lines
470 B
Go
27 lines
470 B
Go
package plugin
|
|
|
|
import (
|
|
"io"
|
|
"os"
|
|
)
|
|
|
|
const dockerExe = "/usr/local/bin/docker"
|
|
const dockerdExe = "/usr/local/bin/dockerd"
|
|
const dockerHome = "/root/.docker/"
|
|
const buildkitConfig = "/tmp/buildkit.json"
|
|
|
|
func (p Plugin) startDaemon() {
|
|
cmd := commandDaemon(p.settings.Daemon)
|
|
if p.settings.Daemon.Debug {
|
|
cmd.Stdout = os.Stdout
|
|
cmd.Stderr = os.Stderr
|
|
} else {
|
|
cmd.Stdout = io.Discard
|
|
cmd.Stderr = io.Discard
|
|
}
|
|
go func() {
|
|
trace(cmd)
|
|
cmd.Run()
|
|
}()
|
|
}
|