2019-05-22 23:16:55 +02:00
|
|
|
# All these commands must run from repository root.
|
|
|
|
|
2019-05-25 17:24:51 +02:00
|
|
|
victoria-metrics:
|
2019-08-28 00:34:26 +02:00
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-local
|
2019-05-25 17:24:51 +02:00
|
|
|
|
2020-03-05 11:02:06 +01:00
|
|
|
victoria-metrics-race:
|
|
|
|
APP_NAME=victoria-metrics RACE=-race $(MAKE) app-local
|
|
|
|
|
2019-05-22 23:16:55 +02:00
|
|
|
victoria-metrics-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker
|
|
|
|
|
2019-12-11 22:06:53 +01:00
|
|
|
victoria-metrics-pure-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-pure
|
|
|
|
|
2022-07-13 14:42:48 +02:00
|
|
|
victoria-metrics-linux-amd64-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-linux-amd64
|
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-linux-arm-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-linux-arm
|
2019-12-11 22:06:53 +01:00
|
|
|
|
2022-07-13 14:42:48 +02:00
|
|
|
victoria-metrics-linux-arm64-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-linux-arm64
|
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-linux-ppc64le-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-linux-ppc64le
|
2022-07-13 14:42:48 +02:00
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-linux-386-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-linux-386
|
2022-07-13 14:42:48 +02:00
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-darwin-amd64-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-darwin-amd64
|
2022-07-13 14:42:48 +02:00
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-darwin-arm64-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-darwin-arm64
|
|
|
|
|
|
|
|
victoria-metrics-freebsd-amd64-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-freebsd-amd64
|
2019-12-11 22:06:53 +01:00
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-openbsd-amd64-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-openbsd-amd64
|
2019-12-11 22:06:53 +01:00
|
|
|
|
2019-05-22 23:16:55 +02:00
|
|
|
package-victoria-metrics:
|
2019-12-11 22:06:53 +01:00
|
|
|
APP_NAME=victoria-metrics $(MAKE) package-via-docker
|
|
|
|
|
|
|
|
package-victoria-metrics-pure:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) package-via-docker-pure
|
|
|
|
|
2019-12-24 11:42:42 +01:00
|
|
|
package-victoria-metrics-amd64:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) package-via-docker-amd64
|
|
|
|
|
2019-12-11 22:06:53 +01:00
|
|
|
package-victoria-metrics-arm:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) package-via-docker-arm
|
|
|
|
|
|
|
|
package-victoria-metrics-arm64:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) package-via-docker-arm64
|
|
|
|
|
|
|
|
package-victoria-metrics-ppc64le:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) package-via-docker-ppc64le
|
|
|
|
|
|
|
|
package-victoria-metrics-386:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) package-via-docker-386
|
2019-05-22 23:16:55 +02:00
|
|
|
|
|
|
|
publish-victoria-metrics:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) publish-via-docker
|
|
|
|
|
|
|
|
run-victoria-metrics:
|
|
|
|
mkdir -p victoria-metrics-data
|
2019-05-24 11:54:53 +02:00
|
|
|
DOCKER_OPTS='-v $(shell pwd)/victoria-metrics-data:/victoria-metrics-data' \
|
2019-05-22 23:16:55 +02:00
|
|
|
APP_NAME=victoria-metrics \
|
|
|
|
ARGS='-graphiteListenAddr=:2003 -opentsdbListenAddr=:4242 -retentionPeriod=12 -search.maxUniqueTimeseries=1000000 -search.maxQueryDuration=10m' \
|
|
|
|
$(MAKE) run-via-docker
|
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-linux-amd64:
|
|
|
|
APP_NAME=victoria-metrics CGO_ENABLED=1 GOOS=linux GOARCH=amd64 $(MAKE) app-local-goos-goarch
|
|
|
|
|
|
|
|
victoria-metrics-linux-arm:
|
|
|
|
APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=linux GOARCH=arm $(MAKE) app-local-goos-goarch
|
|
|
|
|
|
|
|
victoria-metrics-linux-arm64:
|
|
|
|
APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=linux GOARCH=arm64 $(MAKE) app-local-goos-goarch
|
|
|
|
|
|
|
|
victoria-metrics-linux-ppc64le:
|
|
|
|
APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le $(MAKE) app-local-goos-goarch
|
|
|
|
|
|
|
|
victoria-metrics-linux-386:
|
|
|
|
APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=linux GOARCH=386 $(MAKE) app-local-goos-goarch
|
2019-12-24 11:42:42 +01:00
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-darwin-amd64:
|
|
|
|
APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 $(MAKE) app-local-goos-goarch
|
2019-05-29 22:06:54 +02:00
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-darwin-arm64:
|
|
|
|
APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 $(MAKE) app-local-goos-goarch
|
2019-07-23 18:26:39 +02:00
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-freebsd-amd64:
|
|
|
|
APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 $(MAKE) app-local-goos-goarch
|
2019-11-13 19:23:42 +01:00
|
|
|
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-openbsd-amd64:
|
|
|
|
APP_NAME=victoria-metrics CGO_ENABLED=0 GOOS=openbsd GOARCH=amd64 $(MAKE) app-local-goos-goarch
|
2019-10-17 17:22:56 +02:00
|
|
|
|
2019-07-23 18:26:39 +02:00
|
|
|
victoria-metrics-pure:
|
2019-08-28 00:34:26 +02:00
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-local-pure
|
2019-07-22 16:12:48 +02:00
|
|
|
|
2019-07-25 22:47:41 +02:00
|
|
|
### Packaging as DEB - amd64
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-package-deb-amd64: victoria-metrics-linux-amd64-prod
|
2019-07-22 16:12:48 +02:00
|
|
|
./package/package_deb.sh amd64
|
|
|
|
|
2019-07-25 22:47:41 +02:00
|
|
|
### Packaging as DEB - arm64
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-package-deb-arm: victoria-metrics-linux-arm-prod
|
|
|
|
./package/package_deb.sh arm
|
|
|
|
|
|
|
|
### Packaging as DEB - arm64
|
|
|
|
victoria-metrics-package-deb-arm64: victoria-metrics-linux-arm64-prod
|
2019-07-22 16:12:48 +02:00
|
|
|
./package/package_deb.sh arm64
|
|
|
|
|
2019-07-25 22:47:41 +02:00
|
|
|
### Packaging as DEB - all
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-package-deb: \
|
|
|
|
victoria-metrics-package-deb-amd64 \
|
|
|
|
victoria-metrics-package-deb-arm \
|
2019-07-22 16:12:48 +02:00
|
|
|
victoria-metrics-package-deb-arm64
|
|
|
|
|
2019-07-25 22:47:41 +02:00
|
|
|
### Packaging as RPM - amd64
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-package-rpm-amd64: victoria-metrics-linux-amd64-prod
|
2019-07-25 22:47:41 +02:00
|
|
|
./package/package_rpm.sh amd64
|
|
|
|
|
|
|
|
### Packaging as RPM - arm64
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-package-rpm-arm64: victoria-metrics-linux-arm64-prod
|
2019-07-25 22:47:41 +02:00
|
|
|
./package/package_rpm.sh arm64
|
|
|
|
|
|
|
|
### Packaging as RPM - all
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-package-rpm: \
|
|
|
|
victoria-metrics-package-rpm-amd64 \
|
2019-07-25 22:47:41 +02:00
|
|
|
victoria-metrics-package-rpm-arm64
|
|
|
|
|
|
|
|
### Packaging as both DEB and RPM - all
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-package-deb-rpm: \
|
2019-07-25 22:47:41 +02:00
|
|
|
victoria-metrics-package-deb \
|
2022-07-13 15:44:39 +02:00
|
|
|
victoria-metrics-package-rpm
|