GoogleCloudPlatform / continuous-deployment-on-kubernetes

Get up and running with Jenkins on Google Kubernetes Engine
Apache License 2.0
1.6k stars 890 forks source link

Private Repo problems and build size #107

Closed khwerhahn closed 6 years ago

khwerhahn commented 6 years ago

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?