0

I want to install fluent-plugin-route, but I don't know how. i can't use gem install fluent-plugin-route because there's no internet.

Any ideas?

Imran
  • 5,542
  • 3
  • 23
  • 46
김태우
  • 1,033
  • 1
  • 12
  • 29
  • Possible duplicate of [gem install file system](https://stackoverflow.com/q/220176/5030709). You will need to pre-download the `.gem` files from [rubygems](https://rubygems.org/downloads/fluent-plugin-route-1.0.0.gem) and package it with the your agent deployment and run the gem commands which should pick gem from file system. Let me know. – Imran Aug 14 '19 at 02:27

2 Answers2

1

Suggestion: Build the package with rake and install it with gem

1) git clone "Your Repository"

2) bundle install

  • If you don't have bundler "gem install bundler"

3) bundle exec rake build

4) gem install pkg/xxx.gem (Location would be pkg folder)

Copy paste your gem via gem install --local as mentioned by DeeChok on your offline VM via gem produced on your online VM by following step 1-4

Vinayak Mishra
  • 341
  • 4
  • 11
0
  1. Download the gem and its dependencies (also gems)
    1. Put them on the node/instance/vm
    2. Change directory to where the gems are located
    3. Run the below command:
gem install -N --conservative --minimal-deps --no-document --force --local *gem

N.B: You will have to have ruby installed. You can do that install ruby from source by following the steps here. You may need to install gcc, gcc-c++, openssl-dev(OR libel-dev on RHEL7) before hand.

Hope this helps :)

DeeChok
  • 359
  • 1
  • 3
  • 7