From bb45a89206da617236c6db1f1ae2fcf30f4f05ed Mon Sep 17 00:00:00 2001 From: Yash Thakkar Date: Fri, 29 Sep 2017 05:09:07 +0530 Subject: [PATCH 01/10] Update pull request command without fluent prefix in image name, docker is not able to pull the image --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c963821..ec89fda 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ docker build -t fluent-bit:0.11 ./ Once the image is built, it's ready to run: ``` -docker run -p 127.0.0.1:24224:24224 fluent-bit:latest +docker run -p 127.0.0.1:24224:24224 fluent/fluent-bit:latest ``` By default, the configuration set a listener on TCP port 24224 through Forward protocol and prints to the standard output interface each message. So this can be used to forward Docker log messages from one container to the Fluent Bit image, e.g: From 2f5d436017bfe4952a2faaf74184b709e5fe1598 Mon Sep 17 00:00:00 2001 From: James Ravn Date: Fri, 27 Oct 2017 17:22:06 +0100 Subject: [PATCH 02/10] Fix ca certificate installation The subsequent removal of openssl was removing ca-certificates and `/etc/ssl`. This causes the tls options to fail on output plugins. This change rearranges the order to ensure CA certificates will be present. --- 0.12/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0.12/Dockerfile b/0.12/Dockerfile index d698ca1..156251d 100644 --- a/0.12/Dockerfile +++ b/0.12/Dockerfile @@ -14,7 +14,6 @@ RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log RUN apt-get -qq update \ && apt-get install -y -qq \ - ca-certificates \ build-essential \ cmake \ make \ @@ -37,6 +36,7 @@ RUN apt-get -qq update \ bzip2 \ openssl \ manpages \ + && apt-get install -y -qq --no-install-recommends ca-certificates \ && rm -rf /tmp/* # Configuration files From ed858e385161276652df07c50adedf8902273571 Mon Sep 17 00:00:00 2001 From: Sergei Zyubin Date: Wed, 27 Feb 2019 12:46:59 +0100 Subject: [PATCH 03/10] Update Tags Available Signed-off-by: Sergei Zyubin --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6303d49..123a1ea 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,9 @@ Fluent Bit Dockerfiles are located in separated branches with proper tags: | Branch | Tags Available | | ------ | ------------------------------------------------------------ | -| 0.13 | 0.13, 0.13.0 | +| 1.0 | 1.0, 1.0-debug, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.3-debug, 1.0.4, 1.0.4-debug | +| 0.14 | 0.14, 0.14.0, 0.14.1, 0.14.2, 0.14.3, 0.14.4, 0.14.5, 0.14.6, 0.14.7, 0.14.8, 0.14.9 | +| 0.13 | 0.13, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.13.4, 0.13.5, 0.13.6, 0.13.7, 0.13.8 | | 0.12 | 0.12, 0.12.19, 0.12.18, 0.12.17, 0.12.16, 0.12.15, 0.12.14, 0.12.13, 0.12.12, 0.12.11, 0.12.10, 0.12.9, 0.12.8, 0.12.7, 0.12.6, 0.12.5, 0.12.4, 0.12.3, 0.12.2, 0.12.1, 0.12.0 | ## 2. Build image @@ -18,8 +20,8 @@ Fluent Bit Dockerfiles are located in separated branches with proper tags: Use `docker build` command to build the image. This example names the image "fluent-bit:latest": ``` -$ cd 0.13/ -$ docker build -t fluent/fluent-bit:0.13 ./ +$ cd 1.0/ +$ docker build -t fluent/fluent-bit:1.0 ./ ``` ## 3. Test it @@ -40,7 +42,7 @@ $ docker run --log-driver=fluentd -t ubuntu echo "Testing a log message" On Fluent Bit container will print to stdout something like this: ``` -Fluent-Bit v0.13.0 +Fluent Bit v1.0.4 Copyright (C) Treasure Data [0] docker.31c94ceb86ca: [1487548735, {"container_id"=>"31c94ceb86cae7055564eb4d65cd2e2897addd252fe6b86cd11bddd70a871c08", "container_name"=>"/admiring_shannon", "source"=>"stdout","}]og"=>"Testing a log message From 91e3edaa5efdde059b4be56b7e5b0ab151f11fe9 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Fri, 22 Mar 2019 14:00:16 -0600 Subject: [PATCH 04/10] remove old directories Signed-off-by: Eduardo Silva --- 0.12/Dockerfile | 48 ----------------- 0.14/Dockerfile | 65 ----------------------- 0.14/fluent-bit.conf | 15 ------ 0.14/parsers.conf | 101 ------------------------------------ 0.14/parsers_cinder.conf | 10 ---- 0.14/parsers_extra.conf | 78 ---------------------------- 0.14/parsers_java.conf | 6 --- 0.14/parsers_mult.conf | 26 ---------- 0.14/parsers_openstack.conf | 53 ------------------- 9 files changed, 402 deletions(-) delete mode 100644 0.12/Dockerfile delete mode 100644 0.14/Dockerfile delete mode 100644 0.14/fluent-bit.conf delete mode 100644 0.14/parsers.conf delete mode 100644 0.14/parsers_cinder.conf delete mode 100644 0.14/parsers_extra.conf delete mode 100644 0.14/parsers_java.conf delete mode 100644 0.14/parsers_mult.conf delete mode 100644 0.14/parsers_openstack.conf diff --git a/0.12/Dockerfile b/0.12/Dockerfile deleted file mode 100644 index 156251d..0000000 --- a/0.12/Dockerfile +++ /dev/null @@ -1,48 +0,0 @@ -FROM gcr.io/google-containers/debian-base-amd64:0.1 -MAINTAINER Eduardo Silva -LABEL Description="Fluent Bit docker image" Vendor="Fluent Organization" Version="1.1" - -# Fluent Bit version -ENV FLB_MAJOR 0 -ENV FLB_MINOR 12 -ENV FLB_PATCH 5 -ENV FLB_VERSION 0.12.5 - -ENV FLB_TARBALL http://github.com/fluent/fluent-bit/archive/v$FLB_VERSION.zip - -RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log - -RUN apt-get -qq update \ - && apt-get install -y -qq \ - build-essential \ - cmake \ - make \ - wget \ - unzip \ - libsystemd-dev \ - && wget -O "/tmp/fluent-bit-${FLB_VERSION}.zip" ${FLB_TARBALL} \ - && cd /tmp && unzip "fluent-bit-$FLB_VERSION.zip" \ - && cd "fluent-bit-$FLB_VERSION"/build/ \ - && cmake -DFLB_DEBUG=On -DFLB_TRACE=On -DFLB_JEMALLOC=On -DFLB_BUFFERING=On ../ \ - && make \ - && install bin/fluent-bit /fluent-bit/bin/ \ - && apt-get remove --purge --auto-remove -y -qq \ - build-essential \ - cmake \ - make \ - wget \ - unzip \ - libsystemd-dev \ - bzip2 \ - openssl \ - manpages \ - && apt-get install -y -qq --no-install-recommends ca-certificates \ - && rm -rf /tmp/* - -# Configuration files -COPY fluent-bit.conf /fluent-bit/etc/ -COPY parsers.conf /fluent-bit/etc/ -COPY parsers_java.conf /fluent-bit/etc/ - -# Entry point -CMD ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/etc/fluent-bit.conf"] diff --git a/0.14/Dockerfile b/0.14/Dockerfile deleted file mode 100644 index b5e165d..0000000 --- a/0.14/Dockerfile +++ /dev/null @@ -1,65 +0,0 @@ -FROM gcr.io/google-containers/debian-base-amd64:0.3.1 as builder - -# Fluent Bit version -ENV FLB_MAJOR 0 -ENV FLB_MINOR 14 -ENV FLB_PATCH 9 -ENV FLB_VERSION 0.14.9 - -ENV DEBIAN_FRONTEND noninteractive - -ENV FLB_TARBALL http://github.com/fluent/fluent-bit/archive/v$FLB_VERSION.zip - -RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log /tmp/src/ - -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 \ - && wget -O "/tmp/fluent-bit-${FLB_VERSION}.zip" ${FLB_TARBALL} \ - && cd /tmp && unzip "fluent-bit-$FLB_VERSION.zip" \ - && cd "fluent-bit-$FLB_VERSION"/build/ \ - && cmake -DFLB_DEBUG=On \ - -DFLB_TRACE=Off \ - -DFLB_JEMALLOC=On \ - -DFLB_BUFFERING=On \ - -DFLB_TLS=On \ - -DFLB_SHARED_LIB=Off \ - -DFLB_EXAMPLES=Off \ - -DFLB_HTTP_SERVER=On \ - -DFLB_OUT_KAFKA=On .. \ - && make \ - && install bin/fluent-bit /fluent-bit/bin/ - -# Configuration files -COPY fluent-bit.conf \ - parsers.conf \ - parsers_java.conf \ - parsers_mult.conf \ - parsers_openstack.conf \ - parsers_cinder.conf \ - /fluent-bit/etc/ - -FROM gcr.io/google-containers/debian-base-amd64:0.3.1 -MAINTAINER Eduardo Silva -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 -y libsasl2-2 \ - && 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"] diff --git a/0.14/fluent-bit.conf b/0.14/fluent-bit.conf deleted file mode 100644 index ec81989..0000000 --- a/0.14/fluent-bit.conf +++ /dev/null @@ -1,15 +0,0 @@ -[SERVICE] - Flush 1 - Daemon Off - Log_Level info - Log_File /fluent-bit/log/fluent-bit.log - Parsers_File parsers.conf - Parsers_File parsers_java.conf - -[INPUT] - Name Forward - Port 24224 - -[OUTPUT] - Name stdout - Match * diff --git a/0.14/parsers.conf b/0.14/parsers.conf deleted file mode 100644 index 1b1d0eb..0000000 --- a/0.14/parsers.conf +++ /dev/null @@ -1,101 +0,0 @@ -[PARSER] - Name apache - Format regex - Regex ^(?[^ ]*) [^ ]* (?[^ ]*) \[(?