go-langcompilermodPackage Manager- Get the sources from our repository using
gogit 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
modpackage manager:go mod tidy - Build the sources
go build -o ./clickhouse-operator cmd/operator/main.go. This will createclickhouse-operatorbinary 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 -f ./dockerfile/operator/Dockerfile ./ - Register freshly build
dockerimage insidekubernetesenvironment like so:docker save altinity/clickhouse-operator | (eval $(minikube docker-env) && docker load) - Install
clickhouse-operatoras described here: Install ClickHouse Operator