2019-05-22 21:23:23 +00:00
|
|
|
# All these commands must run from repository root.
|
|
|
|
|
|
|
|
run-vmselect:
|
|
|
|
mkdir -p vmselect-cache
|
2019-05-24 09:53:12 +00:00
|
|
|
DOCKER_OPTS='-v $(shell pwd)/vmselect-cache:/cache' \
|
2019-05-22 21:23:23 +00:00
|
|
|
APP_NAME=vmselect \
|
|
|
|
ARGS='-storageNode=localhost:8401 -selectNode=localhost:8481 -cacheDataPath=/cache' \
|
|
|
|
$(MAKE) run-via-docker
|
|
|
|
|
|
|
|
vmselect:
|
|
|
|
APP_NAME=vmselect $(MAKE) app-local
|
|
|
|
|
|
|
|
vmselect-race:
|
|
|
|
APP_NAME=vmselect RACE=-race $(MAKE) app-local
|
|
|
|
|
|
|
|
vmselect-prod:
|
|
|
|
APP_NAME=vmselect $(MAKE) app-via-docker
|
|
|
|
|
|
|
|
vmselect-prod-race:
|
|
|
|
APP_NAME=vmselect RACE=-race $(MAKE) app-via-docker
|
|
|
|
|
2019-07-23 16:54:50 +00:00
|
|
|
vmselect-pure:
|
|
|
|
APP_NAME=vmselect $(MAKE) app-local-pure
|
|
|
|
|
|
|
|
vmselect-pure-prod:
|
|
|
|
APP_NAME=vmselect APP_SUFFIX='-pure' DOCKER_OPTS='--env CGO_ENABLED=0' $(MAKE) app-via-docker
|
|
|
|
|
2019-05-22 21:23:23 +00:00
|
|
|
package-vmselect:
|
|
|
|
APP_NAME=vmselect $(MAKE) package-via-docker
|
|
|
|
|
|
|
|
package-vmselect-race:
|
|
|
|
APP_NAME=vmselect RACE=-race $(MAKE) package-via-docker
|
|
|
|
|
|
|
|
publish-vmselect:
|
|
|
|
APP_NAME=vmselect $(MAKE) publish-via-docker
|
|
|
|
|
|
|
|
publish-vmselect-race:
|
|
|
|
APP_NAME=vmselect RACE=-race $(MAKE) publish-via-docker
|