Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Commit

Permalink
Fix ca certificate installation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsravn authored and edsiper committed Dec 10, 2018
1 parent ca4fa04 commit b4d1728
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions 0.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
FROM gcr.io/google-containers/debian-base-amd64:0.1
MAINTAINER Eduardo Silva <eduardo@treasure-data.com>
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"]

0 comments on commit b4d1728

Please sign in to comment.