rb_sys 0.9.73 → 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: d8bb642f25924e3bb8dcb3bae758454c97677214bba4cbbf50f9d093771597d2
4
- data.tar.gz: 6d6350f41a64a1a49ce1b7de2d01a026934784d7b60f86d1d8c5942ef94f5b81
3
+ metadata.gz: 0fb182f0d955fbe703d6436ef738dd013dc95c1c2f9ee934399d055485707810
4
+ data.tar.gz: 993df78ba76f8eae5e800c929e3da60ca33542fed394866c77f370903f027bf0
5
5
  SHA512:
6
- metadata.gz: 91cd4dbe340a9e63900827f49b7705d2cebbf327743f5d9d3e55e35994b565c346a3176decabbfbc84461e0eba4e1714813618cb018ac961eed911fa4466999c
7
- data.tar.gz: 90ea14d43c369dbef087b144475b1d9660e8ab4579a3779aca06e622f385d9f463f6fe3136741a2b51f9616c3232e8929e858da97e58dcffaa432fd2263c360c
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.73"
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.73
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-21 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