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