mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
vmalert: mention how to build a custom image (#2626)
Thanks to @f41gh7 Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
513f9537a9
commit
d597cdd06f
2 changed files with 38 additions and 0 deletions
|
@ -1013,6 +1013,25 @@ It is recommended using
|
|||
|
||||
* `vmalert` is located in `vmutils-*` archives there.
|
||||
|
||||
### Docker image
|
||||
|
||||
You can build `vmalert` docker image from source and push it to your own docker repository.
|
||||
Run the following commands from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics):
|
||||
```bash
|
||||
make package-vmalert
|
||||
docker tag victoria-metrics/vmalert:version my-repo:my-version-name
|
||||
docker push my-repo:my-version-name
|
||||
```
|
||||
|
||||
To run the built image in `victoria-metrics-k8s-stack` or `VMAlert` CR object apply the following config change:
|
||||
```yaml
|
||||
kind: VMAlert
|
||||
spec:
|
||||
image:
|
||||
repository: my-repo
|
||||
tag: my-version-name
|
||||
```
|
||||
|
||||
### Development build
|
||||
|
||||
1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.17.
|
||||
|
|
|
@ -1017,6 +1017,25 @@ It is recommended using
|
|||
|
||||
* `vmalert` is located in `vmutils-*` archives there.
|
||||
|
||||
### Docker image
|
||||
|
||||
You can build `vmalert` docker image from source and push it to your own docker repository.
|
||||
Run the following commands from the root folder of [the repository](https://github.com/VictoriaMetrics/VictoriaMetrics):
|
||||
```bash
|
||||
make package-vmalert
|
||||
docker tag victoria-metrics/vmalert:version my-repo:my-version-name
|
||||
docker push my-repo:my-version-name
|
||||
```
|
||||
|
||||
To run the built image in `victoria-metrics-k8s-stack` or `VMAlert` CR object apply the following config change:
|
||||
```yaml
|
||||
kind: VMAlert
|
||||
spec:
|
||||
image:
|
||||
repository: my-repo
|
||||
tag: my-version-name
|
||||
```
|
||||
|
||||
### Development build
|
||||
|
||||
1. [Install Go](https://golang.org/doc/install). The minimum supported version is Go 1.17.
|
||||
|
|
Loading…
Reference in a new issue