-
Notifications
You must be signed in to change notification settings - Fork 1
/
dip.yml
121 lines (101 loc) · 2.48 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
version: '2'
environment:
RAILS_ENV: development
compose:
files:
- docker-compose-dev.yml
interaction:
bash:
service: rails
command: /bin/bash
compose_run_options: [no-deps]
bundle:
service: rails
command: bin/bundle
compose_run_options: [no-deps]
bundle_no_tty:
service: rails
command: bundle
compose_run_options: [no-deps -T]
rake:
service: rails
command: bundle exec rake
rails:
service: rails
command: bundle exec rails
subcommands:
s:
service: rails
compose_run_options: [service-ports]
ruby:
service: rails
command: ruby
# [service-ports] - DIP `use` run instead of `exec` they have different behavior:
# that the docker-compose run command does not create any of the ports specified in the service configuration.
# This prevents port collisions with already-open ports.
yarn:
service: rails
command: yarn
compose_run_options: [no-deps]
# We use no-deps for don't start linker container
# https://docs.docker.com/compose/reference/run/
yarn_no_tty:
service: rails
command: yarn
compose_run_options: [no-deps -T]
rspec:
service: rails
environment:
RAILS_ENV: test
command: bundle exec rspec
subcommands:
s:
service: rails
compose_run_options: [service-ports]
rspec_no_tty:
service: rails
environment:
RAILS_ENV: test
command: bundle exec rspec
compose_run_options: [-T]
crystalball:
service: rails
environment:
RAILS_ENV: test
command: bundle exec crystalball
crystalball_no_tty:
service: rails
environment:
RAILS_ENV: test
command: bundle exec crystalball
compose_run_options: [-T]
database_consistency:
service: rails
environment:
RAILS_ENV: test
command: bundle exec database_consistency
database_consistency_no_tty:
service: rails
environment:
RAILS_ENV: test
command: bundle exec database_consistency
compose_run_options: [-T]
standard:
service: rails
command: yarn standard
compose_run_options: [no-deps]
standardrb:
service: rails
command: bundle exec standardrb
compose_run_options: [no-deps]
psql:
service: postgres
command: psql -h postgres -U postgres -d ohmuritel_development
'redis-cli':
service: redis
command: redis-cli -h redis
provision:
- dip compose down --volumes
- dip compose up -d postgres redis
- dip yarn install
- dip bash -c ./bin/setup