4

I'm working on Fluent-bit I need to execute entry-point script in the container but fluent-bit image is distroless base image so any possibilities are there to install bash or any idea for executing that script?

please let me know

HARINI NATHAN
  • 217
  • 3
  • 12

1 Answers1

1

You will need to COPY a shell-binary and the entrypoint to your image like

FROM fluent/fluent-bit:1.4
COPY bash /bin/bash
COPY entrypoint.sh /
ENTRYPOINT ["entrypoint.sh"]

This would be analog to: Install Bash on scratch Docker image

As an alternative you can use a normal distro-image and install fluent-bit via the distro's package manager or compile.

https://docs.fluentbit.io/manual/installation/linux

invad0r
  • 908
  • 1
  • 7
  • 20