Skip to content

Instantly share code, notes, and snippets.

@sonots
Last active April 11, 2019 06:14
Show Gist options
  • Save sonots/f73e3d55b43f5649a780 to your computer and use it in GitHub Desktop.
Save sonots/f73e3d55b43f5649a780 to your computer and use it in GitHub Desktop.

ためしてないけど、こんなかんじでできるのでは。

/etc/sysconfig/td-agent

export BUNDLE_BIN_PATH=/opt/td-agent/embedded/bin/bundle
export BUNDLE_GEMFILE=/etc/td-agent/Gemfile
export RUBYOPT=-rbundler/setup

/etc/td-agent/Gemfile

source 'https://rubygems.org'

gem 'fluent-plugin-awesome' # git 指定もイケるはず

あらかじめ bundle install しておく

cd /etc/td-agent/
/opt/td-agent/embedded/bin/bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment