-
Notifications
You must be signed in to change notification settings - Fork 0
/
dip.yml
90 lines (74 loc) · 1.95 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
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '5.0.0'
environment:
WORK_DIR: /app/${DIP_WORK_DIR_REL_PATH}
compose:
files:
- ./docker-compose.yml
- ./docker-compose.override.yml
interaction:
shell:
description: Open a Bash shell
service: ruby
command: /bin/bash
bundle:
description: Run Bundler commands
service: ruby
command: bundle
rake:
description: Run Rake commands
service: rails
command: bundle exec rake
rails:
description: Run Rails commands
service: rails
command: bundle exec rails
subcommands:
s:
description: Run Rails server available at http://localhost:3000
service: rails-server
command: bundle exec rails server -b 0.0.0.0
compose:
run_options: [service-ports, use-aliases]
sidekiq:
description: Run Sidekiq worker
service: sidekiq
schked:
description: Run Schked scheduler
service: schked
anycable:
description: Run Anycable RPC worker
service: anycable
compose:
run_options: [service-ports, use-aliases]
rspec:
description: Run RSpec commands within test environment
service: rails
environment:
RAILS_ENV: test
command: bundle exec rspec
rubocop:
description: Lint ruby files
service: ruby
command: bundle exec rubocop
packwerk:
description: Run Packwerk commands
service: ruby
command: bundle exec packwerk
engem:
description: Tool for running commands within local Engines or Gems
service: ruby
command: ./bin/engem
psql:
description: Open Postgres console
service: postgres
default_args: primary_development
command: env PGPASSWORD=password psql -h postgres -U postgres
'redis-cli':
description: Open a Redis console
service: redis
command: redis-cli -h redis
provision:
- cp -f lefthook-local.dip_example.yml lefthook-local.yml
- dip compose down --volumes
- dip compose up -d postgres redis sidekiq
- dip shell -c "./bin/setup"