diff --git a/setup.sh b/setup.sh index 8d4750b..b6a051d 100755 --- a/setup.sh +++ b/setup.sh @@ -35,7 +35,17 @@ apk --no-cache add \ tar \ wget \ make \ - xz + xz \ + build-essential \ + git \ + flex \ + bison \ + traceroute \ + curl \ + lynx \ + ruby \ + ruby-dev + extrap=/root/extrapackages if [ -f $extrap ]; then @@ -54,6 +64,26 @@ echo "==> Install pm2" npm install pm2@latest -g +echo "==> create dir" +mkdir -p /var/log-in +mkdir -p /home/docker/.gem +mkdir -p /fluentd/etc +mkdir -p /fluentd/plugins + +chown -R node.node /var/log-in +chown -R node.node /home/docker/.gem +chown -R node.node /fluentd/etc +chown -R node.node /fluentd/plugins + +echo "==> Install gem" + +gem install fluentd --no-doc +gem install fluent-plugin-mongo +gem install oj +gem install json +gem install async-http +gem install ext-monitor + echo "==> Clean up" rm -rf \ /root/.gnupg \