From 2b2e7e9338c4f0d234b9dc48ef82c1ceffbb0bb7 Mon Sep 17 00:00:00 2001 From: Phillip Wittrock Date: Tue, 29 Aug 2017 19:59:31 -0700 Subject: [PATCH] Add root accounts to Docker container so cross compiling works --- cmd/apiserver-boot/boot/build/build_container.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/apiserver-boot/boot/build/build_container.go b/cmd/apiserver-boot/boot/build/build_container.go index d416bcc582..6eb7a0b5f7 100644 --- a/cmd/apiserver-boot/boot/build/build_container.go +++ b/cmd/apiserver-boot/boot/build/build_container.go @@ -78,7 +78,7 @@ func RunBuildContainer(cmd *cobra.Command, args []string) { outputdir = dir RunBuildExecutables(cmd, args) - log.Printf("Building the docker Image.") + log.Printf("Building the docker Image using %s.", path) c := exec.Command("docker", "build", "-t", Image, dir) fmt.Printf("%s\n", strings.Join(c.Args, " ")) @@ -96,6 +96,9 @@ type dockerfileTemplateArguments struct { var dockerfileTemplate = ` FROM ubuntu:14.04 +RUN apt-get update +RUN apt-get install -y ca-certificates + ADD apiserver . ADD controller-manager . `