Configure the Development Environment

    This document describes how to configure a development environment for Chaos Mesh.

    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.

    1. Clone the Chaos Mesh repository to your local server.

    2. Make sure Docker Registry is running. Set the environment variable as the address of Docker Registry:

      1. echo 'export DOCKER_REGISTRY=localhost:5000' >> ~/.bash_profile
      2. source ~/.bash_profile
    3. Make sure ${GOPATH}/bin is in your .

      1. echo 'export PATH=$(go env GOPATH)/bin:${PATH}' >> ~/.bash_profile
    4. Compile Chaos Mesh:

    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:

    1. kind delete cluster --name=kind

    To start Chaos Dashboard, run the following command:

    1. cd ui && yarn
    2. # start

    After finishing the above preparation, you can try to .