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
|
|
|
|
2019-05-22 23:16:55 +02:00
|
|
|
victoria-metrics-prod:
|
|
|
|
APP_NAME=victoria-metrics $(MAKE) app-via-docker
|
|
|
|
|
|
|
|
package-victoria-metrics:
|
|
|
|
APP_NAME=victoria-metrics \
|
|
|
|
$(MAKE) package-via-docker
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
victoria-metrics-arm:
|
2019-07-23 18:26:39 +02: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 22:06:54 +02:00
|
|
|
|
2019-07-23 18:54:50 +02:00
|
|
|
victoria-metrics-arm-prod:
|
|
|
|
APP_NAME=victoria-metrics APP_SUFFIX='-arm' DOCKER_OPTS='--env CGO_ENABLED=0 --env GOARCH=arm' $(MAKE) app-via-docker
|
|
|
|
|
2019-05-29 22:06:54 +02:00
|
|
|
victoria-metrics-arm64:
|
2019-07-23 18:26:39 +02: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-07-23 18:54:50 +02:00
|
|
|
victoria-metrics-arm64-prod:
|
|
|
|
APP_NAME=victoria-metrics APP_SUFFIX='-arm64' DOCKER_OPTS='--env CGO_ENABLED=0 --env GOARCH=arm64' $(MAKE) app-via-docker
|
|
|
|
|
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-23 18:54:50 +02:00
|
|
|
victoria-metrics-pure-prod:
|
|
|
|
APP_NAME=victoria-metrics APP_SUFFIX='-pure' DOCKER_OPTS='--env CGO_ENABLED=0' $(MAKE) app-via-docker
|
|
|
|
|
2019-07-25 22:47:41 +02:00
|
|
|
### Packaging as DEB - amd64
|
2019-07-26 21:25:04 +02:00
|
|
|
victoria-metrics-package-deb: victoria-metrics-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
|
2019-07-26 21:25:04 +02:00
|
|
|
victoria-metrics-package-deb-arm64: victoria-metrics-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
|
2019-07-22 16:12:48 +02:00
|
|
|
victoria-metrics-package-deb-all: \
|
|
|
|
victoria-metrics-package-deb \
|
|
|
|
victoria-metrics-package-deb-arm64
|
|
|
|
|
2019-07-25 22:47:41 +02:00
|
|
|
### Packaging as RPM - amd64
|
2019-07-26 21:25:04 +02:00
|
|
|
victoria-metrics-package-rpm: victoria-metrics-prod
|
2019-07-25 22:47:41 +02:00
|
|
|
./package/package_rpm.sh amd64
|
|
|
|
|
|
|
|
### Packaging as RPM - arm64
|
2019-07-26 21:25:04 +02:00
|
|
|
victoria-metrics-package-rpm-arm64: victoria-metrics-arm64-prod
|
2019-07-25 22:47:41 +02: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
|