File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -7,24 +7,25 @@ DOCKER=docker run \
7
7
-w "/src" \
8
8
-u $(shell id -u) \
9
9
-e "GRAFANA_API_KEY=$(GRAFANA_API_KEY ) "
10
+ NODEVERSION =16
10
11
11
12
build :
12
- $(DOCKER ) --name $(PLUGINNAME ) -build node:latest bash -c " yarn install && yarn run build"
13
+ $(DOCKER ) --name $(PLUGINNAME ) -build node:$( NODEVERSION ) bash -c " yarn install && yarn run build"
13
14
14
15
buildwatch :
15
- $(DOCKER ) -i --name $(PLUGINNAME ) -buildwatch node:16 bash -c " yarn install && yarn run watch"
16
+ $(DOCKER ) -i --name $(PLUGINNAME ) -buildwatch node:$( NODEVERSION ) bash -c " yarn install && yarn run watch"
16
17
17
18
buildupgrade :
18
- $(DOCKER ) --name $(PLUGINNAME ) -buildupgrade node:latest bash -c " yarn install && yarn upgrade"
19
+ $(DOCKER ) --name $(PLUGINNAME ) -buildupgrade node:$( NODEVERSION ) bash -c " yarn install && yarn upgrade"
19
20
20
21
buildsign :
21
- $(DOCKER ) --name $(PLUGINNAME ) -buildsign node:latest npx --legacy-peer-deps @grafana/toolkit plugin:sign
22
+ $(DOCKER ) --name $(PLUGINNAME ) -buildsign node:$( NODEVERSION ) npx --legacy-peer-deps @grafana/toolkit plugin:sign
22
23
23
24
prettier :
24
25
$(DOCKER ) --name $(PLUGINNAME ) -buildsign node:$(NODEVERSION ) npx prettier --write --ignore-unknown src/
25
26
26
27
buildshell :
27
- $(DOCKER ) -i --name $(PLUGINNAME ) -buildshell node:latest bash
28
+ $(DOCKER ) -i --name $(PLUGINNAME ) -buildshell node:$( NODEVERSION ) bash
28
29
29
30
grafanadev :
30
31
docker run --rm -it -v $(shell pwd) /dist:/var/lib/grafana/plugins/$(PLUGINNAME ) \
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " grafana-pnp-datasource" ,
3
- "version" : " 1.1 .0" ,
3
+ "version" : " 2.0 .0" ,
4
4
"description" : " grafana datasource for pnp4nagios" ,
5
5
"author" : " Sven Nierlein" ,
6
6
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments