forked from nickthecook/archyve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathops.yml
68 lines (68 loc) · 1.78 KB
/
ops.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
dependencies:
brew:
- overmind
- poppler
- pandoc
custom:
- bundle config --local path vendor/bundle
- bundle config set --local build.pg ${PG_OPTS}
- bundle
- containers:
up: ops deps start
down: ops deps stop
- yarn
apt:
- ruby-poppler
gem:
- rerun
forwards:
deps: deps
actions:
server:
command: overmind start -f Procfile.dev
load_secrets: true
rails:
command: bin/rails
load_secrets: true
shell:
command: docker compose exec archyve bash
alias: sh
with_secrets:
command: " "
load_secrets: true
shell_expansion: true
request:
param_expansion: true
command: >
curl -v localhost:3300/$1 \
-H "Accept: application/json" \
-H "Authorization: Bearer $DEFAULT_API_KEY" \
-H "X-Client-id: $DEFAULT_CLIENT_ID" | jq
load_secrets: true
request_search: ops request "v1/search?q=how+do+i+install+ruby"
request_search_3: ops request "v1/search?q=how+do+i+install+ruby&num_results=3"
request_collections: ops request v1/collections
request_docs: ops request v1/documents
request_chunks: ops request v1/chunks
request_chat: ops request "v1/chat?prompt=how+do+i+install+ruby&model=phi3:latest"
test:
command: bundle exec rspec --tag "~skip"
alias: t
load_secrets: true
test-watch:
command: rerun --dir app,spec --no-notify -qb -- ops test
alias: tw
lint: bundle exec rubocop
lint-watch:
command: rerun --dir app,spec --no-notify -qb -- ops lint
alias: lw
container:
command: cd container && ops
alias: c
load_secrets: true
options:
environment:
HOMEBREW_PREFIX: $(brew --prefix)
PG_OPTS: ${PG_OPTS:- --with-pg-lib=/usr/lib --with-opt-dir="${HOMEBREW_PREFIX:-/usr/local}/opt/libpq"}
exec:
load_secrets: true