rb_sys 0.9.72 → 0.9.74

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: 998fdec3cdd3e50ed72d92ada5dd56587c302390610ece9b1da8acef882a7f93
4
- data.tar.gz: d5b370bb0cc9f9d9f34cbdad85f28ecfe8cf732d35fc8961cf2b56e44be859b3
3
+ metadata.gz: 0fb182f0d955fbe703d6436ef738dd013dc95c1c2f9ee934399d055485707810
4
+ data.tar.gz: 993df78ba76f8eae5e800c929e3da60ca33542fed394866c77f370903f027bf0
5
5
  SHA512:
6
- metadata.gz: 214f215bb347f722a1fa7b3ed31505aa6864294cf40f411d35b22303a0ef1fddfae300dcab50e68e6a3a32bc469b4dc1354b193d88942f838166144039907759
7
- data.tar.gz: 9f988e8a6256e9dda339b260181dab2ade94beb158d76146e9565e78a97bd933c0f48d33f130495ebd4f183f49f94cc0ec031de55d92be4e80892198ea5b1581
6
+ metadata.gz: 8e9256f3815b03c444621825e231639b7832fa37cd5f8c035b3e0377c5e20670dbc397a01d0cd6a926c0408d83f6f40a7120de78f949ff85c896d0ba2d97a119
7
+ data.tar.gz: 62fdd0ee8f62a52eeda57e74a91ff17d9ba811b81190571c1fe2a81dd16fc18304f6e700ab5ba0301a9f54e558454dadc165898a28b65bf2c65805ab82f09dff
checksums.yaml.gz.sig CHANGED
Binary file
data/exe/rb-sys-dock CHANGED
@@ -181,6 +181,10 @@ def docker_tmp
181
181
  @docker_tmp ||= "/tmp/rb-sys-dock"
182
182
  end
183
183
 
184
+ def docker_bundle_home
185
+ @docker_bundle_home ||= "/tmp/rb-sys-dock/bundle-home"
186
+ end
187
+
184
188
  def cache_dir
185
189
  return @cache_dir if defined?(@cache_dir)
186
190
 
@@ -255,6 +259,18 @@ def mount_bundle_cache
255
259
  "#{volume(dir, bundle_path)} -e BUNDLE_PATH=#{bundle_path.inspect}"
256
260
  end
257
261
 
262
+ def mount_bundle_config
263
+ bundle_config = File.join(ENV["HOME"] || "~", ".bundle", "config")
264
+
265
+ return unless File.exist?(bundle_config)
266
+
267
+ logger.trace("Mounting bundle config: #{bundle_config}")
268
+ parts = []
269
+ parts << volume(bundle_config, File.join(docker_bundle_home, ".bundle", "config"), mode: "ro")
270
+ parts << "-e BUNDLE_HOME=#{docker_bundle_home.inspect}"
271
+ parts.join(" ")
272
+ end
273
+
258
274
  def tmp_target_dir
259
275
  return @tmp_target_dir if defined?(@tmp_target_dir)
260
276
 
@@ -293,10 +309,13 @@ def default_command_to_run(input_args)
293
309
  end
294
310
 
295
311
  def uid_gid
296
- if /darwin/.match?(RbConfig::CONFIG["host_os"])
297
- ["1000", "1000"]
312
+ explicit_uid = ENV["RB_SYS_DOCK_UID"]
313
+ explicit_gid = ENV["RB_SYS_DOCK_GID"]
314
+
315
+ if /darwin/.match?(RbConfig::CONFIG["host_os"]) && !default_docker_command.include?("podman")
316
+ [explicit_uid || "1000", explicit_gid || "1000"]
298
317
  else
299
- [Process.uid, Process.gid]
318
+ [explicit_uid || Process.uid, explicit_gid || Process.gid]
300
319
  end
301
320
  end
302
321
 
@@ -346,6 +365,7 @@ def rcd(input_args)
346
365
  #{mount_cargo_registry} \
347
366
  #{mount_rustup_toolchains} \
348
367
  #{mount_bundle_cache} \
368
+ #{mount_bundle_config} \
349
369
  #{mount_command_history} \
350
370
  #{user_mapping} \
351
371
  -e GEM_PRIVATE_KEY_PASSPHRASE \
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbSys
4
- VERSION = "0.9.72"
4
+ VERSION = "0.9.74"
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb_sys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.72
4
+ version: 0.9.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer
@@ -30,7 +30,7 @@ cert_chain:
30
30
  DIZ6NVmpBvohJVCCCDxQQxFKLXZp1ivoxjN+m7eJSW7yzIz062pH4u8pPNQsiVSb
31
31
  I5rgRPbDr2rAFGXKoQ0+u6CLkRxqrVsITl/OPfZhBQI=
32
32
  -----END CERTIFICATE-----
33
- date: 2023-04-14 00:00:00.000000000 Z
33
+ date: 2023-04-22 00:00:00.000000000 Z
34
34
  dependencies: []
35
35
  description:
36
36
  email:
metadata.gz.sig CHANGED
Binary file