-
Notifications
You must be signed in to change notification settings - Fork 0
/
dip.yml
84 lines (71 loc) · 1.98 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
version: '7'
environment:
RUBY_VERSION: '3.3'
compose:
files:
- docker-compose.yml
interaction:
bash:
description: Open the Bash shell in app's container
service: ruby
command: /bin/bash
bundle:
description: Run Bundler commands
service: ruby
command: bundle
rails:
description: Run RoR commands
service: ruby
command: bundle exec rails
appraisal:
description: Run Appraisal commands
service: ruby
command: bundle exec appraisal
rspec:
description: Run Rspec commands
service: ruby
command: bundle exec rspec
subcommands:
all:
command: bundle exec appraisal rspec
rails-6.1:
command: bundle exec appraisal rails-6.1 rspec
rails-7.0:
command: bundle exec appraisal rails-7.0 rspec
rails-7.1:
command: bundle exec appraisal rails-7.1 rspec
rails-7.2:
command: bundle exec appraisal rails-7.2 rspec
rubocop:
description: Run Ruby linter
service: ruby
command: bundle exec rubocop
setup:
description: Install deps
service: ruby
command: bin/setup
test:
description: Run linters, run all tests
service: ruby
command: bin/test
kafka-consumer:
description: Run kafka consumer
service: ruby
command: bundle exec kafka_consumer
kafka-producer:
description: Run kafka producer commands
service: kafka
command: kafka-console-producer.sh --bootstrap-server kafka:9092
subcommands:
inbox:
command: kafka-console-producer.sh --bootstrap-server kafka:9092 --topic topic_with_inbox_items
json:
command: kafka-console-producer.sh --bootstrap-server kafka:9092 --topic topic_with_json_data
protobuf:
command: kafka-console-producer.sh --bootstrap-server kafka:9092 --topic topic_with_protobuf_data
provision:
- dip compose down --volumes
- cp -f lefthook-local.dip_example.yml lefthook-local.yml
- rm -f Gemfile.lock
- rm -f gemfiles/*gemfile*
- dip setup