-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
13 lines (12 loc) · 1.02 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
all: clean build push
build:
cd client && docker build --network=host --build-arg GNES_IMG_TAG=$(GNES_IMG_TAG) -t gnes/benchmark:client . && cd -
cd summary && docker build --network=host -t gnes/benchmark:summary . && cd -
pull:
docker pull gnes/gnes:$(GNES_IMG_TAG)
clean: ; rm -rf .data/network*.json && mkdir -p .data && docker stack rm my-gnes
wait: ; @printf "sleep $(t)s for docker recycling network resources...\n" && sleep $(t)
run_client: ; unset https_proxy && unset http_proxy && docker run --rm --network host --env GNES_BENCHMARK_ID=$(GNES_BENCHMARK_ID) --env GNES_IMG_TAG=$(GNES_IMG_TAG) --env BENCHMARK_DIR=$(BENCHMARK_DIR) -v $(SHARED_HOST_PATH):/workspace gnes/benchmark:client --mode index --num_bytes $(s) --num_docs $(d) --batch_size $(b)
run_server: ; docker stack deploy --compose-file docker-compose/network$(GNES_BENCHMARK_ID).yml my-gnes
run_summary: ; docker run --rm --network host --env BENCHMARK_DIR=$(BENCHMARK_DIR) -v $(SHARED_HOST_PATH):/workspace gnes/benchmark:summary
test: clean run_server run_client