Source Build Guide
For organizations who prefer to build the software directly from source code, they can compile the clickhouse-operator and install it into a Docker container through the following process.
Binary Build Requirements
- The source code from the clickhouse-operator repository. This can be downloaded with Go with the command
go get github.com/altinity/clickhouse-operator.
Binary Build Instructions
- Switch working dir to
- Link all packages with the command:
go mod tidy.
- Build the sources with
go build -o ./clickhouse-operator cmd/operator/main.go.
This creates the
clickhouse-operator binary. This binary is only used within a kubernetes environment.
Docker Image Build and Usage
Docker Build Requirements
- Complete the Binary Build Instructions
Docker Build Instructions
Switch working dir to
Build docker image with
docker build -t altinity/clickhouse-operator ./
Register freshly build
kubernetesenvironment with the following:
docker save altinity/clickhouse-operator | (eval $(minikube docker-env) && docker load)