You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ARG NODE_VERSION=6.17.1
|
|
|
|
#FROM mhart/alpine-node:${NODE_VERSION}
|
|
|
|
FROM fluent/fluentd:v1.11-1
|
|
|
|
|
|
|
|
LABEL \
|
|
|
|
org.opencontainers.image.title="Docker Image of fluent4poc" \
|
|
|
|
org.opencontainers.image.authors="Swarmlab.io <rootapostolos@swarmlab.io>"
|
|
|
|
|
|
|
|
#ENV PATH=/usr/local/texlive/bin/x86_64-linuxmusl:/usr/local/texlive/2020/bin/x86_64-linuxmusl:${PATH}
|
|
|
|
|
|
|
|
ENV dockeruser fluent
|
|
|
|
|
|
|
|
ENV USERhome=${dockeruser}
|
|
|
|
ENV UID=12345
|
|
|
|
ENV GID=23456
|
|
|
|
|
|
|
|
#RUN addgroup -S node \
|
|
|
|
# && adduser -D -g "" -h "/home/${USERhome}" -G "${USERhome}" -u "${UID}" "${USERhome}"
|
|
|
|
|
|
|
|
USER root
|
|
|
|
COPY \
|
|
|
|
setup.sh \
|
|
|
|
extrapackages \
|
|
|
|
repositories \
|
|
|
|
/root/
|
|
|
|
|
|
|
|
# -------- next line is in setup.sh ------
|
|
|
|
# ----------edit if not alpine ----------
|
|
|
|
# copy repositories /etc/apk/repositories
|
|
|
|
# --------------------------------------
|
|
|
|
|
|
|
|
RUN /root/setup.sh
|
|
|
|
|
|
|
|
|
|
|
|
# --- fluent ----- uncomment --------------------------
|
|
|
|
ARG USER1=fluent
|
|
|
|
ARG NODEPROJECT1src=poc-datacollector/WriteToMongo/fluent/
|
|
|
|
ARG NODEPROJECT1=fluent
|
|
|
|
|
|
|
|
ENV USER1 ${USER1}
|
|
|
|
ENV NODEPROJECTSRC ${NODEPROJECT1src}
|
|
|
|
ENV NODEPROJECT ${NODEPROJECT1}
|
|
|
|
|
|
|
|
|
|
|
|
COPY ${NODEPROJECTSRC} /home/${USER1}/${NODEPROJECT}
|
|
|
|
|
|
|
|
RUN chown -R ${USER1}.${USER1} /home/${USER1}
|
|
|
|
|
|
|
|
RUN /home/${USER1}/${NODEPROJECT}/install-fluent.sh
|
|
|
|
USER ${USER1}
|
|
|
|
|
|
|
|
WORKDIR /home/${USER1}
|
|
|
|
|
|
|
|
|
|
|
|
USER root
|
|
|
|
USER ${USER1}
|
|
|
|
|
|
|
|
WORKDIR /home/${dockeruser}
|
|
|
|
VOLUME ["/home/${dockeruser}"]
|
|
|
|
|
|
|
|
#EXPOSE 8080
|
|
|
|
|
|
|
|
CMD ["tail","-f","/dev/null"]
|
|
|
|
#CMD ["/home/node/playground-client/start-server.sh"]
|