From 1e7bfbeafb51f152ec14884992ce42bc4f451a9d Mon Sep 17 00:00:00 2001 From: zeus Date: Sun, 21 Nov 2021 19:36:10 +0200 Subject: [PATCH] add fluent --- Dockerfile | 18 ++++++++++++++++++ setup.sh | 5 ++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1842857..d17b519 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,6 +48,24 @@ USER ${USER1} RUN /home/${USER1}/${NODEPROJECT}/install-dummyservice.sh + +# --- fluent ----- uncomment -------------------------- +ARG NODEPROJECT2src=poc-datacollector/WriteToMongo/fluent/ +ARG NODEPROJECT2=fluent + +ENV NODEPROJECTSRC2 ${NODEPROJECT2src} +ENV NODEPROJECT2 ${NODEPROJECT2} + + +COPY ${NODEPROJECTSRC2} /home/${USER1}/${NODEPROJECT2} + +RUN chown -R ${USER1}.${USER1} /home/${USER1} + +USER root +RUN /home/${USER1}/${NODEPROJECT}/install-fluent.sh +USER ${USER1} + + WORKDIR /home/${USER1} diff --git a/setup.sh b/setup.sh index b6a051d..58dffaa 100755 --- a/setup.sh +++ b/setup.sh @@ -84,8 +84,11 @@ gem install json gem install async-http gem install ext-monitor +gem sources --clear-all \ + echo "==> Clean up" rm -rf \ /root/.gnupg \ /setup.sh \ - /extrapackages + /extrapackages \ + /tmp/* /var/tmp/* /usr/lib/ruby/gems/*/cache/*.gem