Skip to content

Commit

Permalink
add libyaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ElDuderinos committed Jul 29, 2023
1 parent e625928 commit 8b478b8
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,40 @@
# https://github.com/fluent/fluent-bit/issues/1499
FROM fluent/fluent-bit:latest
FROM fluent/fluent-bit:latest as fluent-bit

FROM ubuntu:focal as lua-libs

RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y libpcre2-dev luarocks

RUN luarocks install lua-cjson \
&& luarocks install lrexlib-pcre2

# https://github.com/fluent/fluent-bit/blob/master/Dockerfile#L60
FROM ubuntu:focal

COPY --from=fluent-bit \
/usr/lib/x86_64-linux-gnu/libsasl*.so* \
/usr/lib/x86_64-linux-gnu/libssl.so* \
/usr/lib/x86_64-linux-gnu/libcrypto.so* \
/usr/lib/x86_64-linux-gnu/libyaml*.so* \
/usr/lib/x86_64-linux-gnu/

COPY --from=fluent-bit \
/usr/lib/x86_64-linux-gnu/libpq.so* \
/usr/lib/x86_64-linux-gnu/libgssapi* \
/usr/lib/x86_64-linux-gnu/libldap* \
/usr/lib/x86_64-linux-gnu/libkrb* \
/usr/lib/x86_64-linux-gnu/libk5crypto* \
/usr/lib/x86_64-linux-gnu/liblber* \
/lib/x86_64-linux-gnu/libkeyutils* \
/lib/x86_64-linux-gnu/

COPY --from=fluent-bit /fluent-bit/bin/ /fluent-bit/bin/
COPY --from=lua-libs /usr/local/lib/lua/ /usr/local/lib/lua/
COPY *.conf *.lua /fluent-bit/etc/

RUN ldd /fluent-bit/bin/fluent-bit | sort \
&& /fluent-bit/bin/fluent-bit --version

ENTRYPOINT [ "/fluent-bit/bin/fluent-bit" ]
CMD [ "-c", "/fluent-bit/etc/fluent-bit.conf" ]

0 comments on commit 8b478b8

Please sign in to comment.