-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdip.yml
72 lines (60 loc) · 1.52 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
version: "4.2"
environment:
RAILS_ENV: development
compose:
files:
- docker-compose.yml
interaction:
sh:
description: Open a Bash shell within a Rails container (with dependencies up)
service: runner
command: /bin/bash
bash:
description: Run an arbitrary script within a container (or open a shell without deps)
service: runner
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
psql:
description: Run psql console
service: postgres
command: psql -h postgres -U postgres -d postgres
pack:
description: Run webpack
service: backend
command: webpack
# Destructive!: just for a quick `rails new`
provision:
- dip compose down --volumes
- dip compose up -d postgres
- dip bundle install
- dip rails new . -d postgresql --webpacker --skip-listen --skip-git
- dip yarn install