2019-05-22 21:16:55 +00:00
|
|
|
# All these commands must run from repository root.
|
|
|
|
|
2019-05-25 15:24:51 +00:00
|
|
|
victoria-metrics:
|
2019-08-27 22:34:26 +00:00
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-local
|
2019-05-25 15:24:51 +00:00
|
|
|
|
2019-05-22 21:16:55 +00:00
|
|
|
victoria-metrics-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker
|
|
|
|
|
2019-12-11 21:06:53 +00:00
|
|
|
victoria-metrics-pure-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-pure
|
|
|
|
|
2019-12-24 10:42:42 +00:00
|
|
|
victoria-metrics-amd64-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-amd64
|
|
|
|
|
2019-12-11 21:06:53 +00:00
|
|
|
victoria-metrics-arm-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-arm
|
|
|
|
|
|
|
|
victoria-metrics-arm64-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-arm64
|
|
|
|
|
|
|
|
victoria-metrics-ppc64le-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-ppc64le
|
|
|
|
|
|
|
|
victoria-metrics-386-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker-386
|
|
|
|
|
2019-05-22 21:16:55 +00:00
|
|
|
package-victoria-metrics:
|
2019-12-11 21:06:53 +00: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 10:42:42 +00:00
|
|
|
package-victoria-metrics-amd64:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) package-via-docker-amd64
|
|
|
|
|
2019-12-11 21:06:53 +00: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 21:16:55 +00:00
|
|
|
|
|
|
|
publish-victoria-metrics:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) publish-via-docker
|
|
|
|
|
|
|
|
run-victoria-metrics:
|
|
|
|
mkdir -p victoria-metrics-data
|
2019-05-24 09:54:53 +00:00
|
|
|
DOCKER_OPTS='-v $(shell pwd)/victoria-metrics-data:/victoria-metrics-data' \
|
2019-05-22 21:16:55 +00:00
|
|
|
APP_NAME=victoria-metrics \
|
|
|
|
ARGS='-graphiteListenAddr=:2003 -opentsdbListenAddr=:4242 -retentionPeriod=12 -search.maxUniqueTimeseries=1000000 -search.maxQueryDuration=10m' \
|
|
|
|
$(MAKE) run-via-docker
|
|
|
|
|
2019-12-24 10:42:42 +00:00
|
|
|
victoria-metrics-amd64:
|
|
|
|
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -mod=vendor -ldflags "$(GO_BUILDINFO)" -o bin/victoria-metrics-amd64 ./app/victoria-metrics
|
|
|
|
|
2019-05-22 21:16:55 +00:00
|
|
|
victoria-metrics-arm:
|
2019-07-23 16:26:39 +00:00
|
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm GO111MODULE=on go build -mod=vendor -ldflags "$(GO_BUILDINFO)" -o bin/victoria-metrics-arm ./app/victoria-metrics
|
2019-05-29 20:06:54 +00:00
|
|
|
|
|
|
|
victoria-metrics-arm64:
|
2019-07-23 16:26:39 +00:00
|
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 GO111MODULE=on go build -mod=vendor -ldflags "$(GO_BUILDINFO)" -o bin/victoria-metrics-arm64 ./app/victoria-metrics
|
|
|
|
|
2019-11-13 18:23:42 +00:00
|
|
|
victoria-metrics-ppc64le:
|
|
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le GO111MODULE=on go build -mod=vendor -ldflags "$(GO_BUILDINFO)" -o bin/victoria-metrics-ppc64le ./app/victoria-metrics
|
|
|
|
|
2019-10-17 15:22:56 +00:00
|
|
|
victoria-metrics-386:
|
|
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=386 GO111MODULE=on go build -mod=vendor -ldflags "$(GO_BUILDINFO)" -o bin/victoria-metrics-386 ./app/victoria-metrics
|
|
|
|
|
2019-07-23 16:26:39 +00:00
|
|
|
victoria-metrics-pure:
|
2019-08-27 22:34:26 +00:00
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-local-pure
|
2019-07-22 14:12:48 +00:00
|
|
|
|
2019-07-25 20:47:41 +00:00
|
|
|
### Packaging as DEB - amd64
|
2019-07-26 19:25:04 +00:00
|
|
|
victoria-metrics-package-deb: victoria-metrics-prod
|
2019-07-22 14:12:48 +00:00
|
|
|
./package/package_deb.sh amd64
|
|
|
|
|
2019-07-25 20:47:41 +00:00
|
|
|
### Packaging as DEB - arm64
|
2019-07-26 19:25:04 +00:00
|
|
|
victoria-metrics-package-deb-arm64: victoria-metrics-arm64-prod
|
2019-07-22 14:12:48 +00:00
|
|
|
./package/package_deb.sh arm64
|
|
|
|
|
2019-07-25 20:47:41 +00:00
|
|
|
### Packaging as DEB - all
|
2019-07-22 14:12:48 +00:00
|
|
|
victoria-metrics-package-deb-all: \
|
|
|
|
victoria-metrics-package-deb \
|
|
|
|
victoria-metrics-package-deb-arm64
|
|
|
|
|
2019-07-25 20:47:41 +00:00
|
|
|
### Packaging as RPM - amd64
|
2019-07-26 19:25:04 +00:00
|
|
|
victoria-metrics-package-rpm: victoria-metrics-prod
|
2019-07-25 20:47:41 +00:00
|
|
|
./package/package_rpm.sh amd64
|
|
|
|
|
|
|
|
### Packaging as RPM - arm64
|
2019-07-26 19:25:04 +00:00
|
|
|
victoria-metrics-package-rpm-arm64: victoria-metrics-arm64-prod
|
2019-07-25 20:47:41 +00:00
|
|
|
./package/package_rpm.sh arm64
|
|
|
|
|
|
|
|
### Packaging as RPM - all
|
|
|
|
victoria-metrics-package-rpm-all: \
|
|
|
|
victoria-metrics-package-rpm \
|
|
|
|
victoria-metrics-package-rpm-arm64
|
|
|
|
|
|
|
|
### Packaging as both DEB and RPM - all
|
|
|
|
victoria-metrics-package-deb-rpm-all: \
|
|
|
|
victoria-metrics-package-deb \
|
|
|
|
victoria-metrics-package-deb-arm64 \
|
|
|
|
victoria-metrics-package-rpm \
|
|
|
|
victoria-metrics-package-rpm-arm64
|