mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-30 15:12:54 +00:00
28 lines
816 B
Makefile
28 lines
816 B
Makefile
BaseDir?=$(CURDIR)
|
|
GOOS?=$(shell go env GOOS)
|
|
GOARCH?=$(shell go env GOARCH)
|
|
|
|
.PHONY: build
|
|
build:
|
|
GOOS=$(GOOS);GOARCH=$(GOARCH) go build -o $(BaseDir)/kk-alpha -tags builtin -gcflags all=-N github.com/kubesphere/kubekey/v4/cmd/kk
|
|
|
|
.PHONY: run-playbook
|
|
run-playbook: build
|
|
@for pb in $(playbooks); do \
|
|
$(BaseDir)/kk-alpha run --work-dir=$(BaseDir)/test \
|
|
--project-addr=git@github.com:littleBlackHouse/kse-installer.git \
|
|
--project-branch=demo \
|
|
--debug playbooks/$$pb;\
|
|
done
|
|
|
|
.PHONY: precheck
|
|
precheck: build
|
|
$(BaseDir)/example/kk-alpha precheck --work-dir=$(BaseDir)/test \
|
|
--inventory=$(BaseDir)/inventory.yaml --debug
|
|
|
|
.PHONY: create-cluster
|
|
create-cluster: build
|
|
$(BaseDir)/example/kk-alpha create cluster --work-dir=$(BaseDir)/test \
|
|
--inventory=$(BaseDir)/inventory.yaml \
|
|
--debug
|