This document helps you prepare environment for developing code for Sedna. If you follow this guide and find some problem, please fill an issue to update this file.
Sedna is managed with git, and to develop locally you
will need to install git
.
You can check if git
is already on your system and properly installed with
the following command:
git --version
All Sedna's control components(i.e. GM/LC) are written in the Go. If you are planning to change them, you need to set up Go.
Sedna currently builds with Go 1.16, install or upgrade Go using the instructions for your operating system.
You can check if Go is in your system with the following command:
go version
Clone the Sedna
repo:
git clone https://github.com/kubeedge/sedna.git
Note: If you want to add or change API in pkg/apis, you need to checkout the code to $GOPATH/src/github.com/kubeedge/sedna
.
If you are planning to run or debug Sedna, you need to set up Kubernetes and KubeEdge.
Sedna requires Kubernetes version 1.16 or higher with CRD support.
Sedna requires KubeEdge version 1.5 or higher with edge support.
Note: You need to check the Kubernetes compatibility of KubeEdge.
Follow Kubernetes setup guides to set up and run Kubernetes, like:
If you're learning Kubernetes, use the tools to set up a Kubernetes cluster on a local machine, e.g.:
Please follow the kubeedge instructions to install KubeEdge.
Once you've set up the prerequisites, continue with:
- See control plane development guide for more details about how to build & test Sedna.
- See lib development guide for more details about how to develop AI algorithms and worker images based on sedna lib code.