devkitkat 0.1.34 → 0.1.36

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8fd1702bb57e08ff95b457deda0700eaceabe5bb1b016e2510c55aeb00da4e1
4
- data.tar.gz: 130d60d2212815e550c7c9588f8912162345830089b8618fb3265eab66ddc47a
3
+ metadata.gz: c63dcfe61a811d243f27b345efdae5f72e91f34a0786f1602d0b569783e8da8b
4
+ data.tar.gz: f86f68314f35964058647a1e46c298712044b4c27c9696542068a170d6121e6b
5
5
  SHA512:
6
- metadata.gz: ada0dcf7dd8124c3baae87cf127c842afc4e55e533bab0541ed8943d323e5bf694e61fac2fddf802de4b78986887c62034b65bca18d152925f3f8445b52c46ae
7
- data.tar.gz: cd9152bc0d81c5d623d49a1a3931687a52e796a78794ae17254ebee5328e8e9c5e36bd8b8723a1fa3e3accd45ae499466b61e63543a15ca4b887f14c90e83169
6
+ metadata.gz: 2f76162ee3cb8d91302f43753aeda35960e4cc9a14a1f4e7f36290a70d1d7141d42acf64fd37c934b06d0f3e751b65e0ad6587fd77c42918d9c918793ee96176
7
+ data.tar.gz: 6da1d6189df323c8c428069e8ac012e46113354e76c706125def1ef03d158097a29caf641f29d09498f0b28254037d68413284a6f705f337212790ef4acac0ef
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- devkitkat (0.1.34)
4
+ devkitkat (0.1.35)
5
5
  activesupport (~> 6.0.0)
6
6
  colorize (~> 0.8.1)
7
7
  docker-api (~> 2.0.0)
@@ -14,7 +14,7 @@ PATH
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- activesupport (6.0.3.4)
17
+ activesupport (6.0.3.5)
18
18
  concurrent-ruby (~> 1.0, >= 1.0.2)
19
19
  i18n (>= 0.7, < 2)
20
20
  minitest (~> 5.1)
@@ -22,13 +22,13 @@ GEM
22
22
  zeitwerk (~> 2.2, >= 2.2.2)
23
23
  coderay (1.1.3)
24
24
  colorize (0.8.1)
25
- concurrent-ruby (1.1.7)
25
+ concurrent-ruby (1.1.8)
26
26
  diff-lcs (1.3)
27
27
  docker-api (2.0.0)
28
28
  excon (>= 0.47.0)
29
29
  multi_json
30
- excon (0.78.0)
31
- i18n (1.8.5)
30
+ excon (0.79.0)
31
+ i18n (1.8.9)
32
32
  concurrent-ruby (~> 1.0)
33
33
  method_source (0.9.2)
34
34
  minitest (5.14.2)
@@ -58,9 +58,9 @@ GEM
58
58
  rspec (>= 3.0)
59
59
  ruby-progressbar (1.10.1)
60
60
  thread_safe (0.3.6)
61
- tzinfo (1.2.7)
61
+ tzinfo (1.2.9)
62
62
  thread_safe (~> 0.1)
63
- zeitwerk (2.4.0)
63
+ zeitwerk (2.4.2)
64
64
 
65
65
  PLATFORMS
66
66
  ruby
@@ -20,7 +20,7 @@ module Devkitkat
20
20
  # so we can't run in parallel.
21
21
  results << services.first.execute
22
22
  else
23
- results = Parallel.map(services, progress: 'Executing', in_processes: 8) do |service|
23
+ results = Parallel.map(services, progress: 'Executing', in_processes: 16) do |service|
24
24
  service.execute.tap do |success|
25
25
  raise Parallel::Kill unless success
26
26
  end
@@ -145,6 +145,10 @@ module Devkitkat
145
145
  @group_id ||= `id -u`.delete("\n")
146
146
  end
147
147
 
148
+ def docker_group_id
149
+ @docker_group_id ||= `getent group docker | awk -F: '{ printf $3 }'`
150
+ end
151
+
148
152
  def user_id
149
153
  @user_id ||= `id -g`
150
154
  end
@@ -164,6 +168,7 @@ module Devkitkat
164
168
  prepare!(['chown', "#{user_name}:#{user_name}", ROOT_IN_CONTAINER])
165
169
  prepare!(['chown', '-R', "#{user_name}:#{user_name}", "#{ROOT_IN_CONTAINER}/services/#{service.name}"])
166
170
  prepare!(['usermod', '-aG', 'docker', user_name])
171
+ prepare!(['groupmod', '-g', docker_group_id, 'docker'])
167
172
  end
168
173
 
169
174
  def prepare!(cmds, params = {})
@@ -1,3 +1,3 @@
1
1
  module Devkitkat
2
- VERSION = "0.1.34"
2
+ VERSION = "0.1.36"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devkitkat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.34
4
+ version: 0.1.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shinya Maeda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2023-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
251
251
  - !ruby/object:Gem::Version
252
252
  version: '0'
253
253
  requirements: []
254
- rubygems_version: 3.1.4
254
+ rubygems_version: 3.1.6
255
255
  signing_key:
256
256
  specification_version: 4
257
257
  summary: Make micro services easy