-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update Makefile, remove compiled json dashboards, update CI
- Loading branch information
1 parent
2dc27cd
commit 706b9b9
Showing
16 changed files
with
33 additions
and
4,439 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,5 @@ e2e-results/ | |
# Editor | ||
.idea | ||
|
||
# Jsonnet Bundler | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,10 @@ | |
# build grafana-pcp | ||
# | ||
YARN = yarn | ||
JSONNET = jsonnet | ||
JSONNETBUNDLER = jb | ||
|
||
DASHBOARD_DIR := src/dashboards | ||
JSONNET_DEPS := src/dashboard/jsonnetfile.json | ||
DASHBOARDS := $(addprefix $(DASHBOARD_DIR)/,pcp-vector-host-overview.json pcp-vector-container-overview-cgroups1.json pcp-vector-container-overview-cgroups2.json pcp-vector-bcc-overview.json fulltext-graph-preview.json fulltext-table-preview.json) | ||
|
||
default: build | ||
|
@@ -12,26 +14,25 @@ node_modules: package.json | |
$(YARN) install | ||
sed -i '[email protected](createIgnoreResult(filePath, cwd));@// &@' node_modules/eslint/lib/cli-engine/cli-engine.js | ||
|
||
$(JSONNET_DEPS): | ||
cd $(DASHBOARD_DIR) && jb install | ||
vendor: jsonnetfile.json | ||
$(JSONNETBUNDLER) install | ||
|
||
$(DASHBOARD_DIR)/%.json: $(DASHBOARD_DIR)/%.jsonnet | ||
cd src/dashboards && jb install | ||
jsonnet -o $@ $< | ||
$(JSONNET) -J vendor -o $@ $< | ||
|
||
dist: node_modules $(JSONNET_DEPS) $(DASHBOARDS) | ||
dist: node_modules vendor $(DASHBOARDS) | ||
$(YARN) run build | ||
|
||
build: dist | ||
|
||
dev: node_modules $(DASHBOARDS) | ||
dev: node_modules vendor $(DASHBOARDS) | ||
$(YARN) run dev | ||
|
||
watch: $(DASHBOARDS) | ||
watch: node_modules vendor $(DASHBOARDS) | ||
$(YARN) run watch | ||
|
||
test: node_modules | ||
$(YARN) run test | ||
|
||
clean: | ||
rm -rf node_modules dist | ||
rm -rf node_modules vendor dist |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
vendor | ||
*.json |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.