rb_sys 0.9.73 → 0.9.74
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
- checksums.yaml.gz.sig +0 -0
- data/exe/rb-sys-dock +23 -3
- data/lib/rb_sys/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fb182f0d955fbe703d6436ef738dd013dc95c1c2f9ee934399d055485707810
|
|
4
|
+
data.tar.gz: 993df78ba76f8eae5e800c929e3da60ca33542fed394866c77f370903f027bf0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
297
|
-
|
|
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 \
|
data/lib/rb_sys/version.rb
CHANGED
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.
|
|
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-
|
|
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
|