Browse Source

add fluent

master
zeus 3 years ago
parent
commit
63d5dd369c
  1. 5
      Dockerfile
  2. 13
      setup.sh

5
Dockerfile

@ -28,9 +28,7 @@ COPY \
# copy repositories /etc/apk/repositories # copy repositories /etc/apk/repositories
# -------------------------------------- # --------------------------------------
USER root
RUN /root/setup.sh RUN /root/setup.sh
USER ${dockeruser}
# nodejs npm install --- opencv----- uncomment -------------------------- # nodejs npm install --- opencv----- uncomment --------------------------
@ -63,8 +61,9 @@ COPY ${NODEPROJECTSRC2} /home/${USER1}/${NODEPROJECT2}
RUN chown -R ${USER1}.${USER1} /home/${USER1} RUN chown -R ${USER1}.${USER1} /home/${USER1}
USER root
RUN /home/${USER1}/${NODEPROJECT}/install-fluent.sh RUN /home/${USER1}/${NODEPROJECT}/install-fluent.sh
USER root
RUN /home/${USER1}/${NODEPROJECT}/install-fluent-root.sh
USER ${USER1} USER ${USER1}

13
setup.sh

@ -74,20 +74,9 @@ chown -R node.node /home/docker/.gem
chown -R node.node /fluentd/etc chown -R node.node /fluentd/etc
chown -R node.node /fluentd/plugins 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
gem sources --clear-all \
echo "==> Clean up" echo "==> Clean up"
rm -rf \ rm -rf \
/root/.gnupg \ /root/.gnupg \
/setup.sh \ /setup.sh \
/extrapackages \ /extrapackages
/tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem

Loading…
Cancel
Save