Esempio n. 1
0
func Cp(file, container, destination string) {
	fmt.Printf("1  - Deploying %v to %v:%v\n", file, container, destination)
	executil.Run("sudo", "docker", "cp", file, container+":"+destination)
}
Esempio n. 2
0
func Build(dockerfile *os.File, image, tag, context string) {
	fmt.Printf(" e - Building image %v:%v\n", image, tag)
	executil.Run("sudo", "docker", "build", "-t", image+":"+tag, "-f", dockerfile.Name(), context)
}
Esempio n. 3
0
func PsFilterFormat(filter, format string) string {
	image_name := executil.Run("sudo", "docker", "ps", "--filter="+filter, "--format=\""+format+"\"")
	return image_name
}
Esempio n. 4
0
func md5sum(contents_cached string) string {
	output := executil.Run("md5sum", contents_cached)
	return output[:len(output)-1]
}