Skip to content

Commit

Permalink
Backport: Rakefile: install ruby gems with parallel (LTS) (#718)
Browse files Browse the repository at this point in the history
Seems It appears to be taking a long time to install ruby gems on
windows environment. So this patch will introduce parallel install to
reduce installation time.


See #674

Signed-off-by: Shizuo Fujita <[email protected]>
Signed-off-by: Kentaro Hayashi <[email protected]>
Co-authored-by: Watson <[email protected]>
  • Loading branch information
kenhys and Watson1978 authored Nov 8, 2024
1 parent 667aa12 commit 61b0767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluent-package/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class BuildTask
gem_home = ENV["GEM_HOME"]
ENV["GEM_HOME"] = gem_staging_dir
ENV["INSTALL_GEM_FROM_LOCAL_REPO"] = "yes"
sh(bundle_command, "_#{BUNDLER_VERSION}_", "install")
sh(bundle_command, "_#{BUNDLER_VERSION}_", "install", "-j#{Etc.nprocessors}")
# Ensure to install binstubs under /opt/td-agent/bin
sh(gem_command, "pristine", "--only-executables", "--all", "--bindir", staging_bindir)
ENV["GEM_HOME"] = gem_home
Expand Down

0 comments on commit 61b0767

Please sign in to comment.