代码拉取完成,页面将自动刷新
# Running on Windows
#
# Set GOPATH in terminal. Example (make for windows needs forwardslashes):
# set GOPATH=T:/repos/reporter
TARGET:=$(GOPATH)/bin/grafana-reporter
ifeq ($(OS),Windows_NT)
TARGET:=$(GOPATH)/bin/grafana-reporter.exe
endif
SRC:=$(GOPATH)/src/github.com/IzakMarais/reporter
.PHONY: buildall
buildall: build buildlinux
.PHONY: build
build:
go install -v github.com/IzakMarais/reporter/cmd/grafana-reporter
.PHONY: buildlinux
buildlinux:
cmd //v //c "set GOOS=linux&&go install -v github.com/IzakMarais/reporter/cmd/grafana-reporter"
.PHONY: clean
clean:
rm -rf $(GOPATH)/bin
.PHONY: docker-build
docker-build:
@docker build -t izakmarais/grafana-reporter:2.3.0 -t izakmarais/grafana-reporter:latest .
docker-push:
@docker push izakmarais/grafana-reporter
.PHONY: test
test: $(TARGET)
@go test -v ./...
.PHONY test2:
@echo hello $(TARGET)
$(GOPATH)/bin/dep:
@go get -u github.com/golang/dep/cmd/dep
update-deps: $(GOPATH)/bin/dep
@cd $(SRC) && dep ensure
@cd $(SRC)/cmd/grafana-reporter && go install
$(TARGET):
@cd $(SRC)/cmd/grafana-reporter && go install
.PHONY: compose-up
compose-up:
@docker-compose -f ./util/docker-compose.yml up
.PHONY: compose-down
compose-down:
@docker-compose -f ./util/docker-compose.yml stop
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。