Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions aws-for-fluent-bit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
package:
name: aws-for-fluent-bit
version: 2.31.12.20230629
epoch: 0
description: AWS provides a Fluent Bit image with plugins for both CloudWatch Logs and Kinesis Data Firehose.
copyright:
- license: Apache-2.0

environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- glibc
- glibc-dev
- yaml-dev
- gcc
- make
- wget
- gnutar
- git
- openssl-dev
- cyrus-sasl-dev
- pkgconf
- dpkg
- systemd-dev
- zlib-dev
- flex
- bison
- autoconf
- automake
- go
- aws-flb-kinesis-compat
Comment thread
Dentrax marked this conversation as resolved.
Outdated
- aws-flb-firehose-compat
- aws-flb-cloudwatch-compat
environment:
FLB_VERSION: "1.9.10"
FLB_DOCKER_BRANCH: "1.8"

pipeline:
- uses: git-checkout
with:
repository: https://github.com/aws/aws-for-fluent-bit
expected-commit: dfb7a7f63eadbe46a846cfbff05e57948154d39c
tag: v${{package.version}}

- runs: |
# GHSA-p782-xgp4-8hr8
go get -u golang.org/x/sys@v0.0.0-20220412211240-33da011f77ad

go mod tidy

- runs: |
mkdir -p "${{targets.destdir}}"/fluent-bit/etc
Comment thread
Dentrax marked this conversation as resolved.
Outdated
mkdir -p "${{targets.destdir}}"/fluent-bit/parsers
cp fluent-bit.conf "${{targets.destdir}}"/fluent-bit/etc/
cp AWS_FLB_CHERRY_PICKS "${{targets.destdir}}"/AWS_FLB_CHERRY_PICKS
cp ./entrypoint.sh "${{targets.destdir}}"/fluent-bit/entrypoint.sh
chmod +x "${{targets.destdir}}"/fluent-bit/entrypoint.sh

- runs: |
git clone --depth=1 https://github.com/fluent/fluent-bit-docker-image.git
pushd fluent-bit-docker-image
Comment thread
Dentrax marked this conversation as resolved.
Outdated
git fetch && git checkout ${FLB_DOCKER_BRANCH}
cp conf/parsers*.conf "${{targets.destdir}}"/fluent-bit/etc
cp conf/parsers*.conf "${{targets.destdir}}"/fluent-bit/parsers/
popd

- runs: |
git clone --depth=1 https://github.com/fluent/fluent-bit.git /tmp/fluent-bit-$FLB_VERSION/
pushd fluent-bit-$FLB_VERSION/build
git fetch --all --tags && git checkout tags/v${FLB_VERSION} -b v${FLB_VERSION} && git describe --tags

cd build
cmake -DFLB_RELEASE=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_ARROW=On \
..
make

- runs: |
make -C build DESTDIR="${{targets.destdir}}" install

- runs: |
mkdir -p "${{targets.destdir}}"/fluent-bit/configs
mv configs/parse-json.conf \
configs/minimize-log-loss.conf \
configs/output-metrics-healthcheck.conf \
configs/plugin-metrics-to-cloudwatch.conf \
configs/plugin-and-storage-metrics-to-cloudwatch.conf \
configs/plugin-metrics-parser.conf.conf \
"${{targets.destdir}}"/fluent-bit/configs/
popd

- uses: strip

update:
enabled: true
github:
identifier: aws/aws-for-fluent-bit
strip-prefix: v
use-tag: true
1 change: 1 addition & 0 deletions packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ aws-c-http
aws-c-auth
aws-c-s3
aws-c-mqtt
aws-for-fluent-bit
nri-prometheus
kube-bench
hugo
Expand Down