Skip to content

Commit

Permalink
Merge pull request #34 from guardian/ash/InitContainer
Browse files Browse the repository at this point in the history
Use aws-for-fluent-bit `init` image and add ECS Metadata
  • Loading branch information
AshCorr authored Oct 27, 2023
2 parents 50744fc + cf44ec4 commit d55a126
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
19 changes: 16 additions & 3 deletions ecs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
FROM amazon/aws-for-fluent-bit:latest
ADD parsers.conf /parsers.conf
ADD custom.conf /custom.conf
FROM amazon/aws-for-fluent-bit:init-2.32.0

# Environment variables are used to specify which config files to load
# https://github.com/aws/aws-for-fluent-bit/blob/mainline/use_cases/init-process-for-fluent-bit/README.md#how-to-use-multi-config-feature

ENV aws_fluent_bit_init_file_1 /guardian-parsers.conf

# Added by aws-for-fluent-bit base image
# https://github.com/aws/aws-for-fluent-bit/blob/develop/scripts/dockerfiles/Dockerfile.main-release#L49
ENV aws_fluent_bit_init_file_2 /ecs/ecs-metadata.conf

# This config file must go last as it applies a `parser` filter which will interfere with any filters that are run before it (config files loaded in reverse order)
ENV aws_fluent_bit_init_file_3 /guardian.conf

ADD guardian-parsers.conf /guardian-parsers.conf
ADD guardian.conf /guardian.conf
File renamed without changes.
3 changes: 0 additions & 3 deletions ecs/custom.conf → ecs/guardian.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[SERVICE]
Parsers_File /parsers.conf

[FILTER]
Name modify
Match *
Expand Down

0 comments on commit d55a126

Please sign in to comment.