From 90670cb55e9c6b81f6c5af04ee9ff38d538e8b80 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 28 Apr 2020 00:09:35 +0300 Subject: [PATCH] app/vmalert: include it into the next release --- Makefile | 8 +++++++- app/vmalert/deployment/Dockerfile | 8 ++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 app/vmalert/deployment/Dockerfile diff --git a/Makefile b/Makefile index ec022428d..0a4076ad0 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ GO_BUILDINFO = -X '$(PKG_PREFIX)/lib/buildinfo.Version=$(APP_NAME)-$(shell date all: \ victoria-metrics-prod \ vmagent-prod \ + vmalert-prot \ vmbackup-prod \ vmrestore-prod @@ -25,17 +26,20 @@ clean: publish: \ publish-victoria-metrics \ publish-vmagent \ + publish-vmalert \ publish-vmbackup \ publish-vmrestore package: \ package-victoria-metrics \ package-vmagent \ + package-vmalert \ package-vmbackup \ package-vmrestore vmutils: \ vmagent \ + vmalert \ vmbackup \ vmrestore @@ -49,9 +53,10 @@ release-victoria-metrics: victoria-metrics-prod release-vmutils: \ vmagent-prod \ + vmalert-prod \ vmbackup-prod \ vmrestore-prod - cd bin && tar czf vmutils-$(PKG_TAG).tar.gz vmagent-prod vmbackup-prod vmrestore-prod && \ + cd bin && tar czf vmutils-$(PKG_TAG).tar.gz vmagent-prod vmalert-prod vmbackup-prod vmrestore-prod && \ sha256sum vmutils-$(PKG_TAG).tar.gz > vmutils-$(PKG_TAG)_checksums.txt pprof-cpu: @@ -78,6 +83,7 @@ errcheck: install-errcheck errcheck -exclude=errcheck_excludes.txt ./app/vmselect/... errcheck -exclude=errcheck_excludes.txt ./app/vmstorage/... errcheck -exclude=errcheck_excludes.txt ./app/vmagent/... + errcheck -exclude=errcheck_excludes.txt ./app/vmalert/... errcheck -exclude=errcheck_excludes.txt ./app/vmbackup/... errcheck -exclude=errcheck_excludes.txt ./app/vmrestore/... errcheck -exclude=errcheck_excludes.txt ./app/vmalert/... diff --git a/app/vmalert/deployment/Dockerfile b/app/vmalert/deployment/Dockerfile new file mode 100644 index 000000000..db2a365ab --- /dev/null +++ b/app/vmalert/deployment/Dockerfile @@ -0,0 +1,8 @@ +ARG base_image +FROM $base_image + +EXPOSE 8880 + +ENTRYPOINT ["/vmalert-prod"] +ARG src_binary +COPY $src_binary ./vmalert-prod