-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
56 lines (43 loc) · 1.19 KB
/
Makefile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
include ../Makefile
URL=https://www.rtasummit.com/agenda
QUERY=big red wall and white bike
clients:
docker build docker -t startree/vector
infra: clients helper
docker compose \
-f ../pinot-compose.yml \
up -d
tables:
@docker cp config/ pinot-controller:/opt/pinot/
@docker exec pinot-controller ./bin/pinot-admin.sh \
AddTable \
-tableConfigFile config/table.json \
-schemaFile config/schema.json \
-exec
@TABLE=images make check_table
recipe: infra check_pinot tables loader
loader:
mkdir -p out
@docker run -it \
--network recipes_default \
--volume $(shell pwd)/config:/config \
--volume $(shell pwd)/images:/images \
--volume $(shell pwd)/out:/out \
-e OPENAI_API_KEY=${OPENAI_API_KEY} \
startree/vector \
python images.py --seed
@docker cp config/ pinot-controller:/opt/pinot/
@docker cp out/ pinot-controller:/in
docker exec \
pinot-controller \
./bin/pinot-admin.sh LaunchDataIngestionJob \
-jobSpecFile ./config/jobspec.yaml
question:
docker run -it \
--volume $(shell pwd)/images:/images \
--network recipes_default \
-e OPENAI_API_KEY=${OPENAI_API_KEY} \
startree/vector \
python images.py --search '${QUERY}'
validate: question
@echo 'passed'