-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Adding how to use plugin version, through docker env variable #19924
Conversation
It was unclear if one can specify the plugin version to the environment variable. It is possible and works fine. Added it to the plugin information.
docs/sources/installation/docker.md
Outdated
@@ -87,7 +87,7 @@ docker run \ | |||
|
|||
## Building a custom Grafana image with pre-installed plugins | |||
|
|||
In the [grafana-docker](https://github.com/grafana/grafana/tree/master/packaging/docker) there is a folder called `custom/` which includes a `Dockerfile` that can be used to build a custom Grafana image. It accepts `GRAFANA_VERSION` and `GF_INSTALL_PLUGINS` as build arguments. | |||
In the [grafana-docker](https://github.com/grafana/grafana/tree/master/packaging/docker) there is a folder called `custom/` which includes a `Dockerfile` that can be used to build a custom Grafana image. It accepts `GRAFANA_VERSION` and `GF_INSTALL_PLUGINS` as build arguments. If you need to specify a specific plugin version you can add version to plugin evnironment variable `--build-arg "GF_INSTALL_PLUGINS=grafana-clock-panel 1.0.1,grafana-simple-json-datasource"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same typo here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hope I fixed it right now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The typo is not fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, I would propose to move the new sentence under the example block so the reader will have a better understanding of the whole context since first there will be the simpler example and under there will be the more specific one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is also a missing .
at the end of the sentence.
docs/sources/installation/docker.md
Outdated
@@ -74,7 +74,7 @@ For a list of available tags, check out [grafana/grafana](https://hub.docker.com | |||
|
|||
## Installing Plugins for Grafana | |||
|
|||
Pass the plugins you want installed to docker with the `GF_INSTALL_PLUGINS` environment variable as a comma separated list. This will pass each plugin name to `grafana-cli plugins install ${plugin}` and install them when Grafana starts. | |||
Pass the plugins you want installed to docker with the `GF_INSTALL_PLUGINS` environment variable as a comma separated list. This will pass each plugin name to `grafana-cli plugins install ${plugin}` and install them when Grafana starts. If you need to specify a specific plugin version you can add optional version to plugin environment variable otherwise latest will be assumed `--build-arg "GF_INSTALL_PLUGINS=grafana-clock-panel 1.0.1,grafana-simple-json-datasource 1.3.5"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a missing .
at the end of the sentence.
Also, instead of --build-arg
should be -e
since the example below is a docker run
instead of a docker build
command.
Finally, I would propose to move the new sentence under the example docker run
so the reader will have a better understanding of the whole context.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you a lot for contributing this.
Please check my comments for some some modifications I have asked.
Moved the information to make it more readable, fixed typos and added missing punctuation.
docs/sources/installation/docker.md
Outdated
@@ -85,6 +85,8 @@ docker run \ | |||
grafana/grafana | |||
``` | |||
|
|||
> If you need to specify the version of a plugin, you can add it to the command. Otherwise latest will be assumed. `-e "GF_INSTALL_PLUGINS=grafana-clock-panel 1.0.1,grafana-simple-json-datasource 1.3.5"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, I liked the idea that you have used notes!
I also preferred it as it was before the last modification, so I would change it to:
If you need to specify the version of a plugin, you can add it to the
GF_INSTALL_PLUGINS
environment variable. Otherwise, the latest will be assumed.
For example:-e "GF_INSTALL_PLUGINS=grafana-clock-panel 1.0.1,grafana-simple-json-datasource 1.3.5"
docs/sources/installation/docker.md
Outdated
@@ -103,6 +105,8 @@ docker run \ | |||
grafana:latest-with-plugins | |||
``` | |||
|
|||
> If you need to specify the version of a plugin, you can add it to the build argument. Otherwise latest will be assumed. `--build-arg "GF_INSTALL_PLUGINS=grafana-clock-panel 1.0.1,grafana-simple-json-datasource 1.3.5"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, I would change it to:
If you need to specify the version of a plugin, you can add it to the
GF_INSTALL_PLUGINS
build argument. Otherwise, the latest will be assumed.
For example:--build-arg "GF_INSTALL_PLUGINS=grafana-clock-panel 1.0.1,grafana-simple-json-datasource 1.3.5"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for making the requested modifications.
I would recommend some minor changes before finally merging it.
More feedback, added example text. Did not manage to get newline for the example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
I have asked for a minor modification before merging it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thank you for your contribution.
It was unclear if one can specify the plugin version to the environment variable when installing plugins when instatiating the docker componen. It is possible and works fine.
Added some text to the documentation
Tested towards grafana 5.3.4
This PR clarifies documentation / love your work:
*fixes documentation:
Fixes #
Special notes for your reviewer: