-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
out_oci_logan: plugin implementation
Signed-off-by: adiforluls <[email protected]>
- Loading branch information
1 parent
fb7d4c8
commit 33f099a
Showing
8 changed files
with
2,071 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
FROM ghcr.io/verrazzano/verrazzano-base-ol9:v1.0.0-20230627070315-744eefa as builder-base | ||
|
||
RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log | ||
|
||
RUN microdnf -y module enable postgresql:15 \ | ||
&& microdnf --enablerepo=ol9_codeready_builder install -y \ | ||
cmake \ | ||
git \ | ||
make \ | ||
gcc \ | ||
gcc-c++ \ | ||
openssl openssl-devel \ | ||
cyrus-sasl-devel \ | ||
systemd-devel \ | ||
zlib-devel \ | ||
libpq-13.5-1.el9.x86_64 \ | ||
libpq-devel-13.5-1.el9.x86_64 \ | ||
libicu libicu-devel \ | ||
flex \ | ||
bison \ | ||
libyaml-devel \ | ||
postgresql postgresql-server \ | ||
&& microdnf clean all | ||
|
||
WORKDIR /src/fluent-bit/ | ||
COPY . ./ | ||
|
||
FROM builder-base | ||
WORKDIR /src/fluent-bit/build/ | ||
RUN cmake -DFLB_RELEASE=On \ | ||
-DFLB_JEMALLOC=On \ | ||
-DFLB_TLS=On \ | ||
-DFLB_SHARED_LIB=Off \ | ||
-DFLB_EXAMPLES=Off \ | ||
-DFLB_HTTP_SERVER=On \ | ||
-DFLB_IN_EXEC=Off \ | ||
-DFLB_IN_SYSTEMD=On \ | ||
-DFLB_OUT_KAFKA=On \ | ||
-DFLB_OUT_PGSQL=On \ | ||
-DFLB_JEMALLOC_OPTIONS="--with-lg-vaddr=48" \ | ||
-DFLB_LOG_NO_CONTROL_CHARS=On \ | ||
.. | ||
|
||
RUN make -j "$(getconf _NPROCESSORS_ONLN)" | ||
RUN install bin/fluent-bit /fluent-bit/bin/ | ||
|
||
COPY conf/fluent-bit.conf \ | ||
conf/parsers.conf \ | ||
conf/parsers_ambassador.conf \ | ||
conf/parsers_java.conf \ | ||
conf/parsers_extra.conf \ | ||
conf/parsers_openstack.conf \ | ||
conf/parsers_cinder.conf \ | ||
conf/plugins.conf \ | ||
/fluent-bit/etc/ | ||
|
||
# Generate schema and include as part of the container image | ||
RUN /fluent-bit/bin/fluent-bit -J > /fluent-bit/etc/schema.json | ||
|
||
|
||
EXPOSE 2020 | ||
|
||
# Entry point | ||
ENTRYPOINT [ "/fluent-bit/bin/fluent-bit" ] | ||
CMD ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/etc/fluent-bit.conf"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
set(src | ||
oci_logan.c | ||
oci_logan_conf.c | ||
) | ||
|
||
FLB_PLUGIN(out_oci_logan "${src}" "") |
Oops, something went wrong.