Configure the Development Environment
Before configuring, you need to install the development tools for Chaos Mesh.
- golang, v1.15 or later versions
- gcc
- v2.8.2 or later versions
- nodejs and , for developing Chaos Dashboard
After installing the above tools, follow the steps below to configure the toolchain for compiling Chaos Mesh.
Clone the Chaos Mesh repository to your local server.
Make sure Docker Registry is running. Set the environment variable as the address of Docker Registry:
echo 'export DOCKER_REGISTRY=localhost:5000' >> ~/.bash_profile
source ~/.bash_profile
Make sure
${GOPATH}/bin
is in your .echo 'export PATH=$(go env GOPATH)/bin:${PATH}' >> ~/.bash_profile
-
If no error occurs, you have successfully cnofigured the toolchain.
After configuring the toolchain, you need to launch a local Kubernetes cluster to deploy Chaos Mesh. Because kind is installed in the configuration requirements section, you can directly use the following command to launch a Kubernetes cluster:
When you no longer need this cluster and want to delete it, you can use the following command:
kind delete cluster --name=kind
cd ui && yarn
# start
After finishing the above preparation, you can try to .