1. Compiling environment
Operating system: Ubuntu 16.04 LTS AMD64
git:2.7.4
docker:1.12.6
2. Compile Steps
2.1 Clone Source Code
# git clone https://github.com/kubernetes/kubernetes.git
# git checkout release-1.7
2.2 To modify the source code is to solve the Gcr.io domestic problems, has been tested, even if ready to gcr.io related mirrors, such as not modify the source code will still be due to network problems caused the compilation failed
edit Kubernetes/build/debian-base/makefile, kubernetes/build/common.sh, kubernetes/build/build-image/ Dockerfile
Replace all gcr.io/google_containers with Googlecontainer
Edit kubernetes/hack/lib/version.sh
Change the kube_git_tree_state= "dirty" to kube_git_tree_state= "clean" to ensure that the version number is clear
2.3 Download Mirrors
# Docker Pull Googlecontainer/kube-cross:v1.8.3-1
# docker Pull Googlecontainer/debian-iptables-amd64:v7
2.4 Performing compilation
# Make Quick-release
2.5 Check Compilation results
The compilation process is longer, please wait patiently, the compiled file is in Kubernetes/_output