2020-02-23 12:35:47 +01:00
|
|
|
# All these commands must run from repository root.
|
|
|
|
|
|
|
|
vmagent:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-local
|
|
|
|
|
2020-03-05 11:02:06 +01:00
|
|
|
vmagent-race:
|
|
|
|
APP_NAME=vmagent RACE=-race $(MAKE) app-local
|
|
|
|
|
2020-02-23 12:35:47 +01:00
|
|
|
vmagent-prod:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-via-docker
|
|
|
|
|
|
|
|
vmagent-pure-prod:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-via-docker-pure
|
|
|
|
|
|
|
|
vmagent-amd64-prod:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-via-docker-amd64
|
|
|
|
|
|
|
|
vmagent-arm-prod:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-via-docker-arm
|
|
|
|
|
|
|
|
vmagent-arm64-prod:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-via-docker-arm64
|
|
|
|
|
|
|
|
vmagent-ppc64le-prod:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-via-docker-ppc64le
|
|
|
|
|
|
|
|
vmagent-386-prod:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-via-docker-386
|
|
|
|
|
|
|
|
package-vmagent:
|
|
|
|
APP_NAME=vmagent $(MAKE) package-via-docker
|
|
|
|
|
|
|
|
package-vmagent-pure:
|
|
|
|
APP_NAME=vmagent $(MAKE) package-via-docker-pure
|
|
|
|
|
|
|
|
package-vmagent-amd64:
|
|
|
|
APP_NAME=vmagent $(MAKE) package-via-docker-amd64
|
|
|
|
|
|
|
|
package-vmagent-arm:
|
|
|
|
APP_NAME=vmagent $(MAKE) package-via-docker-arm
|
|
|
|
|
|
|
|
package-vmagent-arm64:
|
|
|
|
APP_NAME=vmagent $(MAKE) package-via-docker-arm64
|
|
|
|
|
|
|
|
package-vmagent-ppc64le:
|
|
|
|
APP_NAME=vmagent $(MAKE) package-via-docker-ppc64le
|
|
|
|
|
|
|
|
package-vmagent-386:
|
|
|
|
APP_NAME=vmagent $(MAKE) package-via-docker-386
|
|
|
|
|
|
|
|
publish-vmagent:
|
|
|
|
APP_NAME=vmagent $(MAKE) publish-via-docker
|
|
|
|
|
|
|
|
run-vmagent:
|
2020-05-15 18:35:04 +02:00
|
|
|
mkdir -p vmagent-remotewrite-data
|
|
|
|
DOCKER_OPTS='-v $(shell pwd)/vmagent-remotewrite-data:/vmagent-remotewrite-data' \
|
|
|
|
ARGS='-remoteWrite.url=http://localhost:8428/api/v1/write' \
|
2020-02-23 12:35:47 +01:00
|
|
|
APP_NAME=vmagent \
|
|
|
|
$(MAKE) run-via-docker
|
|
|
|
|
|
|
|
vmagent-amd64:
|
2020-07-31 12:42:09 +02:00
|
|
|
CGO_ENABLED=1 GOARCH=amd64 $(MAKE) vmagent-local-with-goarch
|
2020-02-23 12:35:47 +01:00
|
|
|
|
|
|
|
vmagent-arm:
|
2020-07-31 12:42:09 +02:00
|
|
|
CGO_ENABLED=0 GOARCH=arm $(MAKE) vmagent-local-with-goarch
|
2020-02-23 12:35:47 +01:00
|
|
|
|
|
|
|
vmagent-arm64:
|
2020-07-31 12:42:09 +02:00
|
|
|
CGO_ENABLED=0 GOARCH=arm64 $(MAKE) vmagent-local-with-goarch
|
2020-02-23 12:35:47 +01:00
|
|
|
|
|
|
|
vmagent-ppc64le:
|
2020-07-31 12:42:09 +02:00
|
|
|
CGO_ENABLED=0 GOARCH=ppc64le $(MAKE) vmagent-local-with-goarch
|
2020-02-23 12:35:47 +01:00
|
|
|
|
|
|
|
vmagent-386:
|
2020-07-31 12:42:09 +02:00
|
|
|
CGO_ENABLED=0 GOARCH=386 $(MAKE) vmagent-local-with-goarch
|
|
|
|
|
|
|
|
vmagent-local-with-goarch:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-local-with-goarch
|
2020-02-23 12:35:47 +01:00
|
|
|
|
|
|
|
vmagent-pure:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-local-pure
|
2021-03-16 19:49:07 +01:00
|
|
|
|
|
|
|
vmagent-windows-amd64:
|
|
|
|
GOARCH=amd64 APP_NAME=vmagent $(MAKE) app-local-windows-with-goarch
|
|
|
|
|
|
|
|
vmagent-windows-amd64-prod:
|
|
|
|
APP_NAME=vmagent $(MAKE) app-via-docker-windows-amd64
|