1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00
sap-jenkins-library/pkg/docker/multiarch.go
Christian Volk 5aa9661db6
feat(kanikoExecute): preparation for multi-arch builds (#3515)
* feat(kanikoExecute): preparation for multi-arch builds

* missing files
2022-02-09 10:17:34 +01:00

11 lines
291 B
Go

package docker
import (
"github.com/SAP/jenkins-library/pkg/piperutils"
)
// IsBinfmtMiscSupportedByHost checks if the hosts kernel does support binfmt_misc
func IsBinfmtMiscSupportedByHost(utils piperutils.FileUtils) (bool, error) {
return utils.DirExists("/proc/sys/fs/binfmt_misc")
}