go-lang
compilermod
Package Manager- Get the sources from our repository using
go
git wrappergo get github.com/altinity/clickhouse-operator
- Switch working dir to
src/github.com/altinity/clickhouse-operator
- Make sure all packages are linked properly by using
mod
package manager:go mod tidy
- Build the sources
go build -o ./clickhouse-operator cmd/operator/main.go
. This will createclickhouse-operator
binary which could be only used inside kubernetes environment.
This process does not require go-lang
compiler nor dep
package manager. Instead it requires kubernetes
and docker
.
- Switch working dir to
src/github.com/altinity/clickhouse-operator
- Build docker image with
docker
:docker build -t altinity/clickhouse-operator ./
- Register freshly build
docker
image insidekubernetes
environment like so:docker save altinity/clickhouse-operator | (eval $(minikube docker-env) && docker load)
- Install
clickhouse-operator
as described here: Install ClickHouse Operator