forked from fluent/fluent-bit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
67 lines (55 loc) · 1.66 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM gcr.io/google-containers/debian-base-amd64:0.3.1 as builder
# Fluent Bit version
ENV FLB_MAJOR 0
ENV FLB_MINOR 15
ENV FLB_PATCH 0
ENV FLB_VERSION 0.15.0
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log /tmp/src/
COPY . /tmp/src/
RUN rm -rf /tmp/src/build/*
RUN apt-get update && \
apt-get dist-upgrade -y && \
apt-get install -y \
build-essential \
cmake \
make \
wget \
unzip \
libsystemd-dev \
libssl1.0-dev \
libasl-dev \
libsasl2-dev
WORKDIR /tmp/src/build/
RUN cmake -DFLB_DEBUG=On \
-DFLB_TRACE=Off \
-DFLB_JEMALLOC=On \
-DFLB_BUFFERING=On \
-DFLB_TLS=On \
-DFLB_WITHOUT_SHARED_LIB=On \
-DFLB_WITHOUT_EXAMPLES=On \
-DFLB_HTTP_SERVER=On \
-DFLB_OUT_KAFKA=On ..
RUN make
RUN install bin/fluent-bit /fluent-bit/bin/
# Configuration files
COPY conf/fluent-bit.conf \
conf/parsers.conf \
conf/parsers_java.conf \
conf/parsers_extra.conf \
conf/parsers_openstack.conf \
conf/parsers_cinder.conf \
/fluent-bit/etc/
FROM gcr.io/google-containers/debian-base-amd64:0.3.1
MAINTAINER Eduardo Silva <[email protected]>
LABEL Description="Fluent Bit docker image" Vendor="Fluent Organization" Version="1.1"
RUN apt-get update \
&& apt-get dist-upgrade -y \
&& apt-get install --no-install-recommends ca-certificates libssl1.0.2 libsasl2-2 -y \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get autoclean
COPY --from=builder /fluent-bit /fluent-bit
#
EXPOSE 2020
# Entry point
CMD ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/etc/fluent-bit.conf"]