diff --git a/v1.13.x/en/reference/dev-env/index.html b/v1.13.x/en/reference/dev-env/index.html index 354274362..deae763bf 100644 --- a/v1.13.x/en/reference/dev-env/index.html +++ b/v1.13.x/en/reference/dev-env/index.html @@ -6,9 +6,7 @@ var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); -

Development Setup

Environmental Preparation

Kube-OVN uses Golang to develop and Go Modules to manage dependency, please check env GO111MODULE="on"

gosec is used to scan for code security related issues and requires to be installed in the development environment:

go install github.com/securego/gosec/v2/cmd/gosec@latest
-

gofumpt is used to apply stricter rules than gofmt and requires to be installed:

go install mvdan.cc/gofumpt@latest
-

To reduce the size of the final generated image, Kube-OVN uses some of the Docker buildx experimental features, please update Docker to the latest version and enable buildx:

docker buildx create --use
+       

Development Setup

Environmental Preparation

Kube-OVN uses Golang to develop and Go Modules to manage dependency, please check env GO111MODULE="on"

golangci-lint is used to scan code for compliance issues. It needs to be installed in the development environment. Please refer to local-installation.

To reduce the size of the final generated image, Kube-OVN uses some of the Docker buildx experimental features, please update Docker to the latest version and enable buildx:

docker buildx create --use
 

Build Image

Use the following command to download the code and generate the image required to run Kube-OVN:

git clone https://github.com/kubeovn/kube-ovn.git
 cd kube-ovn
 make release
@@ -34,7 +32,7 @@
 make kind-install
 make kube-ovn-lb-svc-conformance-e2e
 

To clean, run the following commands:

make kind-clean
-

微信群 Slack Twitter Support Meeting

Comments

开发环境构建

环境准备

Kube-OVN 使用 Go 开发并使用 Go Modules 管理依赖, 请确认环境变量 GO111MODULE="on"

gosec 被用来扫描代码安全相关问题,需要在开发环境安装:

go install github.com/securego/gosec/v2/cmd/gosec@latest
-

gofumpt 用来对代码进行格式化:

go install mvdan.cc/gofumpt@latest
-

为了降低最终生成镜像大小,Kube-OVN 使用了部分 Docker buildx 试验特性,请更新 Docker 至最新版本 并开启 buildx:

docker buildx create --use
+       

开发环境构建

环境准备

Kube-OVN 使用 Go 开发并使用 Go Modules 管理依赖, 请确认环境变量 GO111MODULE="on"

golangci-lint 被用来扫描代码规范性问题,需要在开发环境安装,请参考local-installation

为了降低最终生成镜像大小,Kube-OVN 使用了部分 Docker buildx 试验特性,请更新 Docker 至最新版本 并开启 buildx:

docker buildx create --use
 

构建镜像

使用下面的命令下载代码,并生成运行 Kube-OVN 所需镜像:

git clone https://github.com/kubeovn/kube-ovn.git
 cd kube-ovn
 make release
@@ -34,7 +32,7 @@
 make kind-install-lb-svc
 make kube-ovn-lb-svc-conformance-e2e
 

如需清理,执行下列命令:

make kind-clean
-

微信群 Slack Twitter Support Meeting

评论