dip 8.2.5 → 8.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/lib/dip/commands/list.rb +1 -1
- data/lib/dip/version.rb +1 -1
- metadata +5 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b2024ed1872b11b03b134cef94a5e15bd0525f93ab6e61de7bf6cfe971b43ebd
|
|
4
|
+
data.tar.gz: 13100418400bb01c4a1843559b7349aae4468a802ed9ea0ba2536840f11a9eb8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d018d6a84f98cd8778a9672f6764ca80ffdd590738b4f3649c1176f586f2dcf8679cb365576211fb094d008410a69ff9160642354de396973392761498d694ba
|
|
7
|
+
data.tar.gz: f2eb077654301b798ef2ff43a93b610c3ddea668e437cc016c22944b8acb3a546fe259f42cd1f3366cca114c799e8c939cd670f140f8163e578c535413f5c064
|
data/README.md
CHANGED
|
@@ -12,7 +12,7 @@ The dip is a CLI dev–tool that provides native-like interaction with a Dockeri
|
|
|
12
12
|
## Presentations and examples
|
|
13
13
|
|
|
14
14
|
- [Local development with Docker containers](https://slides.com/bibendi/dip)
|
|
15
|
-
- [Dockerized Ruby on Rails application](https://
|
|
15
|
+
- [Dockerized Ruby on Rails application](https://github.com/Kuper-Tech/outbox-example-apps)
|
|
16
16
|
- Dockerized Node.js application: [one](https://github.com/bibendi/twinkle.js), [two](https://github.com/bibendi/yt-graphql-react-event-booking-api)
|
|
17
17
|
- [Dockerized Ruby gem](https://github.com/bibendi/schked)
|
|
18
18
|
- [Dockerizing Ruby and Rails development](https://evilmartians.com/chronicles/ruby-on-whales-docker-for-ruby-rails-development)
|
|
@@ -66,12 +66,12 @@ dip SUBCOMMAND --help
|
|
|
66
66
|
|
|
67
67
|
### dip.yml
|
|
68
68
|
|
|
69
|
-
The configuration is loaded from `dip.yml` file. It may be located in a working directory, or it will be found in the nearest parent directory up to the file system root. If
|
|
69
|
+
The configuration is loaded from `dip.yml` file. It may be located in a working directory, or it will be found in the nearest parent directory up to the file system root. If a `dip.override.yml` file exists nearby, it will be merged into the main config.
|
|
70
70
|
|
|
71
71
|
Also, in some cases, you may want to change the default config path by providing an environment variable `DIP_FILE`.
|
|
72
72
|
|
|
73
73
|
Below is an example of a real config.
|
|
74
|
-
|
|
74
|
+
The schema is defined in `schema.json` and can be validated with `dip validate`.
|
|
75
75
|
Also, you can check out examples at the top.
|
|
76
76
|
|
|
77
77
|
```yml
|
|
@@ -184,7 +184,7 @@ provision:
|
|
|
184
184
|
|
|
185
185
|
#### $DIP_OS
|
|
186
186
|
|
|
187
|
-
Current OS
|
|
187
|
+
Current OS name (e.g. `linux`, `darwin`, `freebsd`, and so on). Sometimes it may be useful to have one common `docker-compose.yml` and OS-dependent Compose configs.
|
|
188
188
|
|
|
189
189
|
#### $DIP_WORK_DIR_REL_PATH
|
|
190
190
|
|
|
@@ -240,7 +240,7 @@ The container will run using the same user ID as your host machine.
|
|
|
240
240
|
|
|
241
241
|
### Modules
|
|
242
242
|
|
|
243
|
-
Modules are defined as array in `modules` section of dip.yml
|
|
243
|
+
Modules are defined as an array in the `modules` section of dip.yml. Module files are stored in the `.dip` subdirectory next to dip.yml.
|
|
244
244
|
|
|
245
245
|
The main purpose of modules is to improve maintainability for a group of projects.
|
|
246
246
|
Imagine having multiple gems which are managed with dip, each of them has the same commands, so to change one command in dip you need to update all gems individualy.
|
|
@@ -328,7 +328,7 @@ Nested modules are not supported.
|
|
|
328
328
|
|
|
329
329
|
Run commands defined within the `interaction` section of dip.yml
|
|
330
330
|
|
|
331
|
-
A command will be executed by specified runner.
|
|
331
|
+
A command will be executed by the specified runner. You can set the runner explicitly via the `runner` key (e.g. `runner: docker_compose`). Otherwise dip picks the runner automatically:
|
|
332
332
|
|
|
333
333
|
- `docker compose` runner — used when the `service` option is defined.
|
|
334
334
|
- `kubectl` runner — used when the `pod` option is defined.
|
|
@@ -436,7 +436,7 @@ STAGE=some dip ktl get pods
|
|
|
436
436
|
|
|
437
437
|
Runs ssh-agent container based on https://github.com/whilp/ssh-agent with your ~/.ssh/id_rsa.
|
|
438
438
|
It creates a named volume `ssh_data` with ssh socket.
|
|
439
|
-
An application's docker-compose.yml should
|
|
439
|
+
An application's docker-compose.yml should contain the environment variable `SSH_AUTH_SOCK=/ssh/auth/sock` and connect the external volume `ssh_data`.
|
|
440
440
|
|
|
441
441
|
```sh
|
|
442
442
|
dip ssh up
|
|
@@ -495,4 +495,4 @@ Add `# yaml-language-server: $schema=https://raw.githubusercontent.com/bibendi/d
|
|
|
495
495
|
|
|
496
496
|
## Changelog
|
|
497
497
|
|
|
498
|
-
|
|
498
|
+
See [CHANGELOG.md](CHANGELOG.md).
|
data/lib/dip/commands/list.rb
CHANGED
|
@@ -12,7 +12,7 @@ module Dip
|
|
|
12
12
|
longest_name = tree.keys.map(&:size).max
|
|
13
13
|
|
|
14
14
|
tree.each do |name, command|
|
|
15
|
-
puts "#{name.ljust(longest_name)} ##{
|
|
15
|
+
puts "#{name.ljust(longest_name)} ##{" #{command[:description]}" if command[:description]}"
|
|
16
16
|
end
|
|
17
17
|
end
|
|
18
18
|
end
|
data/lib/dip/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dip
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.2.
|
|
4
|
+
version: 8.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- bibendi
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: thor
|
|
@@ -154,14 +153,14 @@ dependencies:
|
|
|
154
153
|
requirements:
|
|
155
154
|
- - "~>"
|
|
156
155
|
- !ruby/object:Gem::Version
|
|
157
|
-
version: '
|
|
156
|
+
version: '3.0'
|
|
158
157
|
type: :development
|
|
159
158
|
prerelease: false
|
|
160
159
|
version_requirements: !ruby/object:Gem::Requirement
|
|
161
160
|
requirements:
|
|
162
161
|
- - "~>"
|
|
163
162
|
- !ruby/object:Gem::Version
|
|
164
|
-
version: '
|
|
163
|
+
version: '3.0'
|
|
165
164
|
- !ruby/object:Gem::Dependency
|
|
166
165
|
name: simplecov
|
|
167
166
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -252,7 +251,6 @@ licenses:
|
|
|
252
251
|
- MIT
|
|
253
252
|
metadata:
|
|
254
253
|
allowed_push_host: https://rubygems.org/
|
|
255
|
-
post_install_message:
|
|
256
254
|
rdoc_options: []
|
|
257
255
|
require_paths:
|
|
258
256
|
- lib
|
|
@@ -267,8 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
267
265
|
- !ruby/object:Gem::Version
|
|
268
266
|
version: '0'
|
|
269
267
|
requirements: []
|
|
270
|
-
rubygems_version: 3.
|
|
271
|
-
signing_key:
|
|
268
|
+
rubygems_version: 3.6.9
|
|
272
269
|
specification_version: 4
|
|
273
270
|
summary: Ruby gem CLI tool for better interacting Docker Compose files.
|
|
274
271
|
test_files: []
|