forked from palkan/logidze
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dip.yml
53 lines (44 loc) · 1.23 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
version: '5.0'
compose:
files:
- .dockerdev/docker-compose.yml
project_name: logidze_dev
interaction:
bash:
description: Open a Bash shell in app's container
service: dev
command: /bin/bash
bundle:
description: Run bundle tasks
service: dev
command: bundle
rake:
description: Run Rake
service: dev
command: bundle exec rake
rspec:
description: Run RSpec
service: dev
command: bundle exec rspec
rubocop:
description: Run RuboCop
service: dev
command: bundle exec rubocop
psql:
description: Run psql console
service: postgres
command: psql -h postgres -U postgres
pgbench:
description: Run pgbench commands from the ./bench folder
service: postgres
command: pgbench -h postgres -U postgres
subcommands:
init:
command: pgbench -h postgres -U postgres -i -q logidze_bench
provision:
- dip up -d postgres
- dip compose run postgres createdb -h postgres -U postgres logidze_test
- dip compose run postgres createdb -h postgres -U postgres logidze_bench
- dip compose run postgres createdb -h postgres -U postgres logidze_perf_bench
- dip psql -d logidze_bench -c 'CREATE EXTENSION IF NOT EXISTS hstore;'
- dip bundle install