k8s dev

0. install golang 1.9.1

https://golang.org/doc/install

1. development.md

https://github.com/kubernetes/community/blob/master/contributors/devel/development.md

 2. 配置国内的docker源

http://www.jianshu.com/p/34d3b4568059

3. Unable to find image 'gcr.io/google_containers/gen-swagger-docs:v8' locally

因为墙的原因访问不到这个image,可以配置中科大的docker源后,使用如下命令下载

docker pull docker.io/k82cn/gen-swagger-docs:v8

然后标记tag为

gcr.io/google_containers/gen-swagger-docs:v8

 

4.unrecognized import path "golang.org/x/tools/go/vcs" (https fetch: Get https://golang.org/x/tools/go/vcs?go-get=1: dial tcp 216.239.37.1:443: i/o timeout)

因为墙的原因下载不到golang.org/x/tools,可以从github上下载跟它一样的代码,然后重命名目录

具体方法见这里   

https://studygolang.com/articles/7131

mkdir $GOPATH/src/golang.org

ln -s $GOPATH/src/github.com/golang $GOPATH/src/golang.org/x

cd $GOPATH/src/golang.org/x/tools/go/buildutil

go install

 

5.

Step 1 : FROM gcr.io/google_containers/kube-cross:v1.9.2-1
Trying to pull repository gcr.io/google_containers/kube-cross ...
Get https://gcr.io/v1/_ping: dial tcp 74.125.204.82:443: i/o timeout

还是墙的原因。。。

docker pull docker.io/pickjob/kube-cross:v1.9.2-1

docker tag xxx gcr.io/google_containers/kube-cross:v1.9.2-1

 

6. centos FQ

https://fanach.github.io/post/ss-linux/  

 

7. mac go get FQ

https://www.goodspb.net/mac-%E4%BD%BF%E7%94%A8-golang-%E7%BF%BB%E5%A2%99%E5%AE%9E%E5%BD%95/

https://github.com/mrdulin/blog/issues/18

 

 

8. 提交前的注意事项

https://github.com/kubernetes/community/blob/master/contributors/devel/pull-requests.md#the-pr-submit-process and developer guide https://git.k8s.io/community/contributors/devel/development.md#development-guide

 

 

9. make verify

[[0;31mFAILED TESTS^[[0m
========================
^[[0;31mhack/make-rules/../../hack/verify-api-groups.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-bazel.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-boilerplate.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-cli-conventions.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-generated-docs.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-generated-protobuf.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-godep-licenses.sh^[[0m

KUBE_FORCE_VERIFY_CHECKS=y hack/verify-godeps.sh


^[[0;31mhack/make-rules/../../hack/verify-godeps.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-gofmt.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-golint.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-govet.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-openapi-spec.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-readonly-packages.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-swagger-spec.sh^[[0m
^[[0;31mhack/make-rules/../../hack/verify-symbols.sh^[[0m

 

posted @ 2017-11-30 17:09  elar  阅读(458)  评论(0编辑  收藏  举报