-
Notifications
You must be signed in to change notification settings - Fork 4
/
dip.yml
93 lines (77 loc) · 1.83 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
---
version: '4.1'
environment:
RAILS_ENV: development
compose:
files:
- docker-compose-dev.yml
interaction:
sh:
service: backend
command: /bin/sh
compose_run_options: [no-deps]
bundle:
service: backend
command: bundle
compose_run_options: [no-deps]
audit:
service: backend
command: bundle exec bundle audit --update
compose_run_options: [no-deps]
rake:
service: backend
command: bundle exec rake
rails:
service: backend
command: bundle exec rails
subcommands:
s:
service: backend
compose_run_options: [service-ports]
rspec:
service: backend
environment:
RAILS_ENV: test
command: bundle exec rspec
rubocop:
service: backend
environment:
RAILS_ENV: test
command: bundle exec rubocop
report:
service: frontend
environment:
NODE_ENV: production
command: yarn run report
spec:
service: backend
environment:
RAILS_ENV: test
command: rake parallel:spec
consistency_fail:
service: backend
command: RAILS_ENV=test dip bundle exec consistency_fail .
compose_run_options: [no-deps]
yarn:
service: frontend
command: yarn
compose_run_options: [no-deps]
db_reset:
service: backend
command: bundle exec rails db:drop db:create db:migrate db:seed
compose_run_options: [no-deps]
psql:
service: db
command: psql -h db -U postgres -d backend_development
provision:
- dip down
- dip compose build
- dip yarn
- dip bundle install
- dip rails db:drop db:create db:migrate db:seed
- dip up -d
- echo "=================================================="
- echo "Provision done."
- echo "Frontend is located at localhost:3333"
- echo "Backend is located at localhost:8888"
- echo "=================================================="