diff --git a/app/vmalert/README.md b/app/vmalert/README.md index 0a54570ac8..3e15ca1225 100644 --- a/app/vmalert/README.md +++ b/app/vmalert/README.md @@ -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. diff --git a/docs/vmalert.md b/docs/vmalert.md index 79ce0da202..ebb337ff12 100644 --- a/docs/vmalert.md +++ b/docs/vmalert.md @@ -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.