You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN sed -i 's/<\/body><\/html>/<script src=\"http:\/\/localhost:35729\/livereload.js\"><\/script><\/body><\/html>/g' /usr/share/grafana/public/views/index.html
Copy file name to clipboardExpand all lines: .config/README.md
+25-2
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,11 @@ set up the Jest DOM for the testing library and to apply some polyfills. ([link
56
56
57
57
#### ESM errors with Jest
58
58
59
-
A common issue found with the current jest config involves importing an npm package which only offers an ESM build. These packages cause jest to error with `SyntaxError: Cannot use import statement outside a module`. To work around this we provide a list of known packages to pass to the `[transformIgnorePatterns](https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)` jest configuration property. If need be this can be extended in the following way:
59
+
A common issue with the current jest config involves importing an npm package that only offers an ESM build. These packages cause jest to error with `SyntaxError: Cannot use import statement outside a module`. To work around this, we provide a list of known packages to pass to the `[transformIgnorePatterns](https://jestjs.io/docs/configuration#transformignorepatterns-arraystring)` jest configuration property. If need be, this can be extended in the following way:
### 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 behavior, 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 assign the environment variable `GRAFANA_IMAGE` to the build arg `grafana_image` with a default value of `grafana`. This will allow you to set the value while running the docker-compose commands, which might be convenient in some scenarios.
0 commit comments