Merge pull request #11 from rayzhou2017/master

Add go module proxy in China
This commit is contained in:
pixiake 2020-05-15 16:46:19 +08:00 committed by GitHub
commit 592aae233d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -92,7 +92,10 @@ cd kubekey
./build.sh
```
> Note: Docker needs to be installed before building.
**Note:**
* Docker needs to be installed before building.
* If you have problem to access `https://proxy.golang.org/` in China mainland, please open the build.sh to use the Go module proxy in China.
## Road Map

View File

@ -1,3 +1,7 @@
#! /bin/bash
docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.14.2-buster go build -v -o kk
# Using the most trusted Go module proxy in China mainland
# docker run --rm -e GO111MODULE=on -e GOPROXY=https://goproxy.cn -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.14.2-buster go build -v -o kk