diff --git a/WriteToMongo/fluent/install-fluent-root.sh b/WriteToMongo/fluent/install-fluent-root.sh new file mode 100755 index 0000000..babc1bb --- /dev/null +++ b/WriteToMongo/fluent/install-fluent-root.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +BASEDIR=$(dirname $0) +cpwd=$PWD + +echo $BASEDIR + +cd $BASEDIR + + +cp fluent.conf /fluentd/etc/ +/tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem + diff --git a/WriteToMongo/fluent/install-fluent.sh b/WriteToMongo/fluent/install-fluent.sh index e616d67..e890f8c 100755 --- a/WriteToMongo/fluent/install-fluent.sh +++ b/WriteToMongo/fluent/install-fluent.sh @@ -7,6 +7,11 @@ echo $BASEDIR cd $BASEDIR +gem install fluentd --no-doc +gem install fluent-plugin-mongo +gem install oj +gem install json +gem install async-http +gem install ext-monitor +gem sources --clear-all -cp fluent.conf /fluentd/etc/ -#cp entrypoint.sh /bin/