mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
Merge pull request #11 from rayzhou2017/master
Add go module proxy in China
This commit is contained in:
commit
592aae233d
|
|
@ -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
|
||||
|
||||
|
|
|
|||
4
build.sh
4
build.sh
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue