GoogleCloudPlatform/continuous-deployment-on-kubernetes

Private Repo problems and build size

Closed this issue · 0 comments

I have used this tutorial to setup my own pipeline and it kind of works. I'm using private repos and it causes the container build to fail:

Cloning into '/go/src/github.com/....'...
fatal: could not read Username for 'https://github.com': No such device or address
package github.com/........: exit status 128

Maybe this could be incorporated into this tutorial, since everybody uses private repos.

I've been doing some reading about golang and containers. Seems like people are compiling their apps before building the docker image. The result is incredibly small images. I posted this issue on Stackoverflow. I haven't tried it yet, but maybe this build step could be incorporated in the Jenkins build step?