-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 976 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 976 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
##
# Makefile for ARGOS development and evaluation
#
# Targets:
# dev-up: build and start services via docker-compose
# dev-down: tear down docker-compose services
# demo: run scripted queries against the seed corpus
# eval-nightly: compute metrics and write nightly report
COMPOSE_FILE=ops/docker-compose.yaml
PYTHON=python3
.PHONY: dev-up dev-down demo eval-nightly
## Build images and start all services locally via docker-compose.
dev-up:
docker-compose -f $(COMPOSE_FILE) up --build -d
## Stop all services and remove containers, networks, and volumes.
dev-down:
docker-compose -f $(COMPOSE_FILE) down -v
## Run the demo script to issue a sequence of queries against the answer API.
demo:
@echo "Running demo queries..."
$(PYTHON) eval/demo.py
## Compute metrics on recent logs and generate a nightly HTML report.
eval-nightly:
$(PYTHON) eval/nightly_report.py --logs ./logs --output ./eval/report.html
@echo "Nightly report generated at eval/report.html"