All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			
		
			
				
	
	
		
			57 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM debian:stretch-slim as builder
 | 
						|
 | 
						|
# Fluent Bit version
 | 
						|
ENV FLB_MAJOR 1
 | 
						|
ENV FLB_MINOR 5
 | 
						|
ENV FLB_PATCH 4
 | 
						|
ENV FLB_VERSION 1.5.4
 | 
						|
 | 
						|
ARG FLB_TARBALL=https://github.com/fluent/fluent-bit/archive/v$FLB_VERSION.tar.gz
 | 
						|
ENV FLB_SOURCE $FLB_TARBALL
 | 
						|
RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log /tmp/fluent-bit-master/
 | 
						|
 | 
						|
ENV DEBIAN_FRONTEND noninteractive
 | 
						|
 | 
						|
RUN apt-get update && \
 | 
						|
    apt-get install -y curl \
 | 
						|
    ca-certificates build-essential \
 | 
						|
    cmake make bash sudo wget unzip dh-make \
 | 
						|
    libsystemd-dev zlib1g-dev flex bison \
 | 
						|
    libssl1.1 libssl-dev libpq-dev postgresql-server-dev-all && \
 | 
						|
    apt-get install -y --reinstall lsb-base lsb-release \
 | 
						|
    && curl -L -o "/tmp/fluent-bit.tar.gz" ${FLB_SOURCE} \
 | 
						|
    && cd tmp/ && mkdir fluent-bit \
 | 
						|
    && tar zxfv fluent-bit.tar.gz -C ./fluent-bit --strip-components=1 \
 | 
						|
    && cd fluent-bit/build/ \
 | 
						|
    && rm -rf /tmp/fluent-bit/build/*
 | 
						|
 | 
						|
WORKDIR /tmp/fluent-bit/build/
 | 
						|
RUN cmake -DFLB_DEBUG=On \
 | 
						|
          -DFLB_TRACE=Off \
 | 
						|
          -DFLB_JEMALLOC=On \
 | 
						|
          -DFLB_TLS=On \
 | 
						|
          -DFLB_SHARED_LIB=Off \
 | 
						|
          -DFLB_EXAMPLES=Off \
 | 
						|
          -DFLB_HTTP_SERVER=On \
 | 
						|
          -DFLB_IN_SYSTEMD=On \
 | 
						|
          -DFLB_OUT_KAFKA=On \
 | 
						|
          -DFLB_OUT_PGSQL=On ..
 | 
						|
 | 
						|
RUN make -j $(getconf _NPROCESSORS_ONLN)
 | 
						|
RUN install bin/fluent-bit /fluent-bit/bin/
 | 
						|
 | 
						|
# Configuration files
 | 
						|
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/
 | 
						|
 | 
						|
FROM gcr.io/distroless/cc
 | 
						|
 | 
						|
COPY --from=builder /fluent-bit /fluent-bit
 |