-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathaws-for-fluent-bit.yaml
91 lines (82 loc) · 3.07 KB
/
aws-for-fluent-bit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
package:
name: aws-for-fluent-bit
version: 2.32.0
epoch: 1
description: AWS provides a Fluent Bit image with plugins for both CloudWatch Logs and Kinesis Data Firehose.
copyright:
- license: Apache-2.0
dependencies:
runtime:
- aws-flb-cloudwatch
- aws-flb-cloudwatch-compat
- aws-flb-firehose
- aws-flb-firehose-compat
- aws-flb-kinesis
- aws-flb-kinesis-compat
- ca-certificates-bundle
- fluent-bit
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
vars:
FLB_DOCKER_BRANCH: "1.8"
pipeline:
- uses: git-checkout
with:
repository: https://github.com/aws/aws-for-fluent-bit
expected-commit: 00496b6369984b83de44ad5b3ee49db184f5fa22
tag: v${{package.version}}
- runs: |
mkdir -p "${{targets.destdir}}"/etc/ecs
mkdir -p "${{targets.destdir}}"/etc/fluent-bit/etc
mkdir -p "${{targets.destdir}}"/etc/fluent-bit/parsers
cp -r ./ecs/* ${{targets.destdir}}/etc/ecs
cp fluent-bit.conf "${{targets.destdir}}"/etc/fluent-bit/etc/
cp ./entrypoint.sh "${{targets.destdir}}"/etc/fluent-bit/entrypoint.sh
cp AWS_FOR_FLUENT_BIT_VERSION "${{targets.destdir}}"/etc/fluent-bit/AWS_FOR_FLUENT_BIT_VERSION
chmod +x "${{targets.destdir}}"/etc/fluent-bit/entrypoint.sh
- runs: |
mkdir -p "${{targets.destdir}}"/etc/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 \
"${{targets.destdir}}"/etc/fluent-bit/configs/
- working-directory: fluent-bit-docker-image
pipeline:
- uses: git-checkout
with:
repository: https://github.com/fluent/fluent-bit-docker-image
branch: ${{vars.FLB_DOCKER_BRANCH}}
expected-commit: 98ce3316ea93751ddd33bc319a8f9d177493155b
- runs: |
cp conf/parsers*.conf "${{targets.destdir}}"/etc/fluent-bit/etc
cp conf/parsers*.conf "${{targets.destdir}}"/etc/fluent-bit/parsers/
- uses: strip
subpackages:
- name: "aws-for-fluent-bit-compat"
description: "Compatibility package to place binaries in the location expected by AWS for Fluent Bit"
pipeline:
- runs: |
# The AWS for Fluent Bit expects the .so libraries to be in /fluent-bit
mkdir -p "${{targets.subpkgdir}}"/fluent-bit
mkdir -p "${{targets.subpkgdir}}"/fluent-bit/bin
mkdir -p "${{targets.subpkgdir}}"/ecs
ln -sf /etc/ecs ${{targets.subpkgdir}}/ecs
ln -sf /etc/fluent-bit/ ${{targets.subpkgdir}}/fluent-bit/
ln -sf /etc/fluent-bit/entrypoint.sh ${{targets.subpkgdir}}/entrypoint.sh
ln -sf /usr/bin/fluent-bit ${{targets.subpkgdir}}/fluent-bit/bin/fluent-bit
- uses: strip
update:
ignore-regex-patterns:
- ^\d+\.\d+.\d+\.\d+$
enabled: true
github:
identifier: aws/aws-for-fluent-bit
strip-prefix: v
use-tag: true