How can I add fluent-bit to an image that builds on docker:latest
?
I have tried this:
FROM docker:latest
RUN apk add python3 py-pip python3-dev libffi-dev openssl-dev gcc libc-dev make curl libc6-compat
RUN apk add --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
ENTRYPOINT ["/fluent-bit/bin/fluent-bit", "-c", "/fluent-bit/etc/fluent-bit.conf"]
But it does not find /fluent-bit/bin/fluent-bit
. I do need Python, Docker, and all the other specified dependencies.
2
Answers
I ended up installing docker and fluent-bit in a Python Debian image, and it works. Dockerfile:
entrypoint.sh:
There is no official Fluent-bit docker on Alpine Linux.
Please, Check the official manual.
Therefore, you need to change your code’s package name to Debian’s package. Also, the link shows some packages of yours won’t work.
So you need to find Debian equivalents.
For example,
openssl-dev
‘s Debian equivalent isopenssl-devel
.After that, please, merge your code with the official fluent-bit dockerfile.