This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdip.yml
111 lines (97 loc) · 2.6 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
# Run eval "$(dip console)" in open terminal tab to not have to to prepend
# commands with `dip`:
# `dip rails c` -> `rails c`
# Required minimum dip version
version: "4.1"
environment:
COMPOSE_EXT: development
compose:
files:
- docker-compose.yml
project_name: rails-k8s-demo
interaction:
bash:
description: Open the Bash shell in rails container
service: app
command: bash
compose:
run_options: [no-deps]
bundle:
description: Run Bundler commands
service: app
command: bundle
yarn:
description: Run Yarn commands
service: app
command: yarn
rake:
description: Run Rake commands
service: app
command: bundle exec rake
standardrb:
description: Run standardrb on Project
service: app
command: bundle exec standardrb
rspec:
description: Run Rspec commands
service: app
environment:
RAILS_ENV: test
command: ./vnc.sh bundle exec rspec --format=documentation
compose:
run_options: ["publish=5900:5900"]
sidekiq:
description: Run commands in sidekiq container
service: sidekiq
compose:
method: run
subcommands:
logs:
description: "Display last 200 lines of Sidekiq logs and follow"
compose:
method: logs
run_options: [follow, tail='200']
rails:
description: Run Rails commands
service: app
command: bundle exec rails
subcommands:
s:
description: Run Rails server at http://localhost:3000
service: rails
compose:
run_options: [service-ports, use-aliases]
s-altport:
description: Run Rails server at select port `dip run -p 5000:3000 rails s-altport`
service: rails
compose:
run_options: [use-aliases]
logs:
description: Display last 200 lines of Rails logs and follow
service: rails
compose:
method: logs
run_options: [follow, tail='200']
webpacker:
description: Run commands towards Webpacker service
service: webpacker
subcommands:
logs:
description: Display last 200 lines of Webpacker logs and follow
compose:
method: logs
run_options: [follow, tail='200']
compose:
run_options: [service-ports, use-aliases]
psql:
description: Run Postgres psql console
service: app
default_args: forms_development
command: psql -h postgres -U postgres
provision:
- docker-compose down --volumes
- docker-compose up -d postgres redis
- docker-compose up -d --build app
- dip bundle install
- dip yarn install
- "dip rails db:prepare"