mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Feature: do dev environment via makefile (#17136)
Simplifies dev environment creation. I also planing to utilize this logic for the LDAP benchmarking
This commit is contained in:
parent
bc3a718107
commit
baa55ab6ae
15
Makefile
15
Makefile
@ -1,6 +1,6 @@
|
||||
-include local/Makefile
|
||||
|
||||
.PHONY: all deps-go deps-js deps build-go build-server build-cli build-js build build-docker-dev build-docker-full lint-go test-go test-js test run clean gosec revive
|
||||
.PHONY: all deps-go deps-js deps build-go build-server build-cli build-js build build-docker-dev build-docker-full lint-go test-go test-js test run clean gosec revive devenv devenv-down
|
||||
|
||||
GO := GO111MODULE=on go
|
||||
GO_FILES := ./pkg/...
|
||||
@ -84,6 +84,19 @@ revive: scripts/go/bin/revive
|
||||
-config ./scripts/go/configs/revive.toml \
|
||||
$(GO_FILES)
|
||||
|
||||
# create docker-compose file with provided sources and start them
|
||||
# example: make devenv sources=postgres,openldap
|
||||
devenv: devenv-down
|
||||
$(eval targets := $(shell echo '$(sources)' | tr "," " "))
|
||||
|
||||
@cd devenv; \
|
||||
./create_docker_compose.sh $(targets); \
|
||||
docker-compose up -d
|
||||
|
||||
# drop down the envs
|
||||
devenv-down:
|
||||
@cd devenv; docker-compose down;
|
||||
|
||||
# TODO recheck the rules and leave only necessary exclusions
|
||||
gosec: scripts/go/bin/gosec
|
||||
@scripts/go/bin/gosec -quiet \
|
||||
|
Loading…
Reference in New Issue
Block a user