Skip to content
Snippets Groups Projects
Commit 6c1f4744 authored by Neil McKee's avatar Neil McKee
Browse files

Update Dockerfile

parent 7431e60e
No related branches found
No related tags found
No related merge requests found
Pipeline #43808 failed
FROM golang:bullseye as gobuilder
RUN git clone https://github.com/sflow/host-sflow \
&& cd host-sflow \
&& make all install FEATURES="CONTAINERDGO"
FROM ubuntu:20.04 as builder
ARG DEBIAN_FRONTEND=noninteractive
RUN echo "UPDATE" && apt-get update && apt-get install -y --no-install-recommends \
git \
gcc \
make
RUN echo "EXTRAS" && apt-get install -y --no-install-recommends \
libpcap-dev \
libssl-dev \
libdbus-1-dev \
uuid-dev
RUN echo "CERTS" && apt-get install -y --reinstall ca-certificates
RUN git clone https://github.com/sflow/host-sflow \
&& cd host-sflow \
&& make all install FEATURES="PCAP TCP DOCKER DROPMON CONTAINERD K8S" PROCFS=/rootproc
FROM ubuntu:20.04
RUN echo "UPDATE" && apt-get update
RUN echo "EXTRAS" && apt-get install -y --no-install-recommends \
libpcap-dev \
libssl-dev \
libdbus-1-dev \
uuid-runtime \
dmidecode
COPY --from=gobuilder /usr/sbin/hsflowd_containerd /usr/sbin/hsflowd_containerd
COPY --from=builder /usr/sbin/hsflowd /usr/sbin/hsflowd
COPY --from=builder /etc/hsflowd.conf /etc/hsflowd.conf
COPY --from=builder /etc/hsflowd/modules/* /etc/hsflowd/modules/
CMD /usr/sbin/hsflowd -m `uuidgen` -d -D /var/log/hsflowd.log -F /etc/hsflowd.debug
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment