-
Notifications
You must be signed in to change notification settings - Fork 15
/
ops.yml
84 lines (84 loc) · 2.12 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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:
- pandoc
- poppler-utils
- 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
migrate:
command: bin/rails db:migrate && bin/rails neo4j:migrate
load_secrets: true
shell:
command: docker compose exec archyve bash
alias: sh
with_secrets:
command: " "
load_secrets: true
shell_expansion: true
request:
command: bin/request
load_secrets: true
alias: r
opp:
command: bin/request -n -P 11337
load_secrets: true
test:
command: bundle exec rspec --tag "~skip" --exclude-pattern "spec/e2e/**/*"
alias: t
load_secrets: true
test-watch:
command: rerun --dir app,spec --no-notify -qb -- ops test
alias: tw
test-e2e:
# tags are: opp, api, slow, llm, chat
command: TEST_E2E=true bundle exec rspec --tag "~skip" spec/e2e
alias: e2e
load_secrets: true
test-e2e-watch:
command: rerun --dir app,spec --no-notify -qb --pattern "**/*.{rb,js,json,yml,html,ru}" -- ops test-e2e
alias: ew
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
repl:
command: rails r scripts/repl
load_secrets: true
shell_expansion: 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"}
API_BASE_URL: ${API_BASE_URL:-http://localhost}
REDIS_URL: ${REDIS_URL:-redis://localhost:6378/1}
PORT: ${PORT:-3300}
LLM_JOBS_CONCURRENCY: ${LLM_JOBS_CONCURRENCY:-5}
OPP_PORT: ${OPP_PORT:-11337}
OPP_BIND_ADDRESS: ${OPP_BIND_ADDRESS:-127.0.0.1}
exec:
load_secrets: true