-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdip.yml
77 lines (65 loc) · 1.62 KB
/
dip.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
version: '7.0'
environment:
RAILS_ENV: development
compose:
files:
- docker-compose.yml
interaction:
sh:
description: Open the app container bash shell
service: backend
command: /bin/bash
compose_run_options: [no-deps]
bundle:
description: Run bundler command
service: backend
command: bundle
compose_run_options: [no-deps]
rake:
description: Run rake command
service: backend
command: bundle exec rake
rails:
description: Run rails command
service: backend
command: bundle exec rails
subcommands:
s:
description: Start rails server
service: rails
compose_run_options: [service-ports]
yarn:
description: Run yarn command
service: backend
command: yarn
compose_run_options: [no-deps]
minitest:
description: Run minitest
service: backend
environment:
RAILS_ENV: test
command: bundle exec rails test
cop:
description: Run rubocop
service: backend
default_args: -a
command: bundle exec rubocop
compose_run_options: [no-deps]
psql:
description: Run psql console
service: postgres
command: psql -h postgres -U postgres -d postgres
inspect_all:
description: Run all checkers
service: backend
command: bundle exec license_finder
command: bundle exec rails test
command: bundle exec rails_best_practices .
command: bundle exec bundle-audit
command: bundle exec brakeman
provision:
- dip compose up -d postgres
- dip compose up -d webpacker
- dip yarn install --check-files
- dip rails db:prepare
- dip rails db:prepare RAILS_ENV=test