rb_sys 0.9.73 → 0.9.75

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: aef8bfaa0a0f1ad0062d2283c4f31874673a763487c96165584fc10d5a56573f
4
+ data.tar.gz: 5da0a3a6115b77e86b9809134c2bc8cab5bd350d8815ed4b430202b1e2cec3f4
5
5
  SHA512:
6
- metadata.gz: 91cd4dbe340a9e63900827f49b7705d2cebbf327743f5d9d3e55e35994b565c346a3176decabbfbc84461e0eba4e1714813618cb018ac961eed911fa4466999c
7
- data.tar.gz: 90ea14d43c369dbef087b144475b1d9660e8ab4579a3779aca06e622f385d9f463f6fe3136741a2b51f9616c3232e8929e858da97e58dcffaa432fd2263c360c
6
+ metadata.gz: b4186fc5a1af13bf6c95ccc27dec226dc7e920726214f4a911f220effd553a7603bac0854acb4a63f910e2cd2f861195ea3d1ab243f46365096de68a2abeaa25
7
+ data.tar.gz: d827bd4cc060690d45c02bfd50c946b3707abb7c12efb7ab6971808690ce815a813ce9c0f472135c3dba921249040e5cffdcb407b45d76137087f0d6512e9126
checksums.yaml.gz.sig CHANGED
@@ -1,3 +1 @@
1
- ��_
2
- �R�9 ��߈��2
3
- 9�2��<AL�q��]�m|_��v�1M�i �;�_��� Dfy���r`C��25=!�/��`��a�"��^�#�M���m����Z���##��ɫ�S���0�V��K��<MPR�d����F$�6_�џ%K''���q %���z��a�M����ݍ���L"�:���<�w�4;+�5���S�g�١��
1
+ 9P�IytF�c�;G )�|_���̛
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 \
@@ -354,7 +374,6 @@ def rcd(input_args)
354
374
  -e https_proxy \
355
375
  -e RCD_HOST_RUBY_PLATFORM=#{RbConfig::CONFIG["arch"]} \
356
376
  -e RCD_HOST_RUBY_VERSION=#{RUBY_VERSION} \
357
- -e RUSTUP_PERMIT_COPY_RENAME=true \
358
377
  -e RCD_IMAGE \
359
378
  -e RB_SYS_DOCK_TMPDIR="/tmp/rb-sys-dock" \
360
379
  -e RB_SYS_CARGO_TARGET_DIR=#{tmp_target_dir.inspect} \
@@ -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.75"
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.75
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-27 00:00:00.000000000 Z
34
34
  dependencies: []
35
35
  description:
36
36
  email:
metadata.gz.sig CHANGED
Binary file