|
@ -35,7 +35,17 @@ apk --no-cache add \ |
|
|
tar \ |
|
|
tar \ |
|
|
wget \ |
|
|
wget \ |
|
|
make \ |
|
|
make \ |
|
|
xz |
|
|
xz \ |
|
|
|
|
|
build-essential \ |
|
|
|
|
|
git \ |
|
|
|
|
|
flex \ |
|
|
|
|
|
bison \ |
|
|
|
|
|
traceroute \ |
|
|
|
|
|
curl \ |
|
|
|
|
|
lynx \ |
|
|
|
|
|
ruby \ |
|
|
|
|
|
ruby-dev |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extrap=/root/extrapackages |
|
|
extrap=/root/extrapackages |
|
|
if [ -f $extrap ]; then |
|
|
if [ -f $extrap ]; then |
|
@ -54,6 +64,26 @@ echo "==> Install pm2" |
|
|
|
|
|
|
|
|
npm install pm2@latest -g |
|
|
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" |
|
|
echo "==> Clean up" |
|
|
rm -rf \ |
|
|
rm -rf \ |
|
|
/root/.gnupg \ |
|
|
/root/.gnupg \ |
|
|