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 +4 -4
- checksums.yaml.gz.sig +1 -3
- data/exe/rb-sys-dock +23 -4
- 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: aef8bfaa0a0f1ad0062d2283c4f31874673a763487c96165584fc10d5a56573f
|
4
|
+
data.tar.gz: 5da0a3a6115b77e86b9809134c2bc8cab5bd350d8815ed4b430202b1e2cec3f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4186fc5a1af13bf6c95ccc27dec226dc7e920726214f4a911f220effd553a7603bac0854acb4a63f910e2cd2f861195ea3d1ab243f46365096de68a2abeaa25
|
7
|
+
data.tar.gz: d827bd4cc060690d45c02bfd50c946b3707abb7c12efb7ab6971808690ce815a813ce9c0f472135c3dba921249040e5cffdcb407b45d76137087f0d6512e9126
|
checksums.yaml.gz.sig
CHANGED
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 \
|
@@ -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} \
|
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.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-
|
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
|