This document describes how to setup your local development environment for StatusBay.
Make sure the following tools are installed:
- Docker
- Golang 1.12.0+ (installation manual)
- Node.js 12+ and npm 6+ (installation with nvm)
- MySQL 5.7
- Minikube (installation manual)
- (Optional) Helm (installation manual)
Fork StatusBay project
If you want to run the watcher application, you should have a running K8S environment. Minikube is one the options to achieve that.
$ minikube start
$ docker run -p 3306:3306 -e MYSQL_DATABASE=statusbay -e MYSQL_ROOT_PASSWORD=1234 -d mysql:5.7
This command will run StatusBay watcher.
Please refer to configuration example file to see additional configurations.
$ go run main.go -config ./examples/configuration/kubernetes.yaml -mode kubernetes -kubeconfig ~/.kube/config
# The reason we pass -kubeconfig in the command above is in order to define the cluster we wish the watcher to subscribe to it's event stream.
This command will run the API server.
Please refer to configuration example file to see additional configurations..
$ go run main.go -config ./examples/configuration/api.yaml -mode api -events ./examples/configuration/events.yaml
Use this Helm application in order to test your deployment.