[Kubernetes] Kubernetes 1.7 Source Code compilation

Source: Internet
Author: User
Tags git clone

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







Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.