Go implementation of the Runner Controller.
- GoLang - Install GoLang.
- MinIO - Start a MinIO server instance.
- CockroachDB - Start a CockroachDB instance.
- Install the protobuf-grpc compiler.
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
export PATH="$PATH:$(go env GOPATH)/bin"
- Export the following environment variables.
export DATABASE_URL=<cockroachdb_url>
export MINIO_ENDPOINT=<minio_endpoint>
export MINIO_ACCESS_KEY_ID=<minio_access_key>
export MINIO_SECRET_KEY=<minio_secret_key>
export RABBITMQ_URL=<rabbitmq_url>
- Run the following command to start the server.
go run main.go
- Install protoc compiler
- Run the following command to generate the go files from the proto files.
protoc --go_out=./ --go_opt=paths=source_relative \
--go-grpc_out=./ --go-grpc_opt=paths=source_relative \
./proto/authenticate.proto