@grafana/create-plugin 0.9.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v0.10.0 (Thu Feb 02 2023)
|
|
2
|
+
|
|
3
|
+
#### 🚀 Enhancement
|
|
4
|
+
|
|
5
|
+
- CreatePlugin: Change default docker image to grafana-enterprise [#197](https://github.com/grafana/plugin-tools/pull/197) ([@mckn](https://github.com/mckn))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Marcus Andersson ([@mckn](https://github.com/mckn))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v0.9.1 (Thu Feb 02 2023)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/create-plugin",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=16"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "4528730fa262596399c6e1b0158311ae31bf64bd"
|
|
64
64
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
ARG grafana_version=latest
|
|
2
|
+
ARG grafana_image=grafana-enterprise
|
|
2
3
|
|
|
3
|
-
FROM grafana
|
|
4
|
+
FROM grafana/${grafana_image}:${grafana_version}
|
|
4
5
|
|
|
5
6
|
# Make it as simple as possible to access the grafana instance for development purposes
|
|
6
7
|
# Do NOT enable these settings in a public facing / production grafana instance
|
|
@@ -139,3 +139,26 @@ We need to update the `scripts` in the `package.json` to use the extended Webpac
|
|
|
139
139
|
-"dev": "webpack -w -c ./.config/webpack/webpack.config.ts --env development",
|
|
140
140
|
+"dev": "webpack -w -c ./webpack.config.ts --env development",
|
|
141
141
|
```
|
|
142
|
+
|
|
143
|
+
### Configure grafana image to use when running docker
|
|
144
|
+
|
|
145
|
+
By default `grafana-enterprise` will be used as the docker image for all docker related commands. If you want to override this behaviour simply alter the `docker-compose.yaml` by adding the following build arg `grafana_image`.
|
|
146
|
+
|
|
147
|
+
**Example:**
|
|
148
|
+
|
|
149
|
+
```yaml
|
|
150
|
+
version: '3.7'
|
|
151
|
+
|
|
152
|
+
services:
|
|
153
|
+
grafana:
|
|
154
|
+
container_name: 'myorg-basic-app'
|
|
155
|
+
build:
|
|
156
|
+
context: ./.config
|
|
157
|
+
args:
|
|
158
|
+
grafana_version: ${GRAFANA_VERSION:-9.1.2}
|
|
159
|
+
grafana_image: ${GRAFANA_IMAGE:-grafana}
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
In this example we are assigning the environment variable `GRAFANA_IMAGE` to the build arg `grafana_image` with a default value of `grafana`. This will give you the possibility to set the value while running the docker-compose commands which might be convinent in some scenarios.
|
|
163
|
+
|
|
164
|
+
---
|