app/vmalert: include it into the next release

This commit is contained in:
Aliaksandr Valialkin 2020-04-28 00:09:35 +03:00
parent 303905cd84
commit 90670cb55e
2 changed files with 15 additions and 1 deletions

View file

@ -13,6 +13,7 @@ GO_BUILDINFO = -X '$(PKG_PREFIX)/lib/buildinfo.Version=$(APP_NAME)-$(shell date
all: \ all: \
victoria-metrics-prod \ victoria-metrics-prod \
vmagent-prod \ vmagent-prod \
vmalert-prot \
vmbackup-prod \ vmbackup-prod \
vmrestore-prod vmrestore-prod
@ -25,17 +26,20 @@ clean:
publish: \ publish: \
publish-victoria-metrics \ publish-victoria-metrics \
publish-vmagent \ publish-vmagent \
publish-vmalert \
publish-vmbackup \ publish-vmbackup \
publish-vmrestore publish-vmrestore
package: \ package: \
package-victoria-metrics \ package-victoria-metrics \
package-vmagent \ package-vmagent \
package-vmalert \
package-vmbackup \ package-vmbackup \
package-vmrestore package-vmrestore
vmutils: \ vmutils: \
vmagent \ vmagent \
vmalert \
vmbackup \ vmbackup \
vmrestore vmrestore
@ -49,9 +53,10 @@ release-victoria-metrics: victoria-metrics-prod
release-vmutils: \ release-vmutils: \
vmagent-prod \ vmagent-prod \
vmalert-prod \
vmbackup-prod \ vmbackup-prod \
vmrestore-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 sha256sum vmutils-$(PKG_TAG).tar.gz > vmutils-$(PKG_TAG)_checksums.txt
pprof-cpu: pprof-cpu:
@ -78,6 +83,7 @@ errcheck: install-errcheck
errcheck -exclude=errcheck_excludes.txt ./app/vmselect/... errcheck -exclude=errcheck_excludes.txt ./app/vmselect/...
errcheck -exclude=errcheck_excludes.txt ./app/vmstorage/... errcheck -exclude=errcheck_excludes.txt ./app/vmstorage/...
errcheck -exclude=errcheck_excludes.txt ./app/vmagent/... 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/vmbackup/...
errcheck -exclude=errcheck_excludes.txt ./app/vmrestore/... errcheck -exclude=errcheck_excludes.txt ./app/vmrestore/...
errcheck -exclude=errcheck_excludes.txt ./app/vmalert/... errcheck -exclude=errcheck_excludes.txt ./app/vmalert/...

View file

@ -0,0 +1,8 @@
ARG base_image
FROM $base_image
EXPOSE 8880
ENTRYPOINT ["/vmalert-prod"]
ARG src_binary
COPY $src_binary ./vmalert-prod