# orchard-fluent-bit

## Overview

This is a wrapper Docker image that runs the FluentBit container.

This image is used as a sidecar container for ECS to route logs through FireLens integration.

## Bumping Versions

We have hardcoded a specific fluent-bit tag to better control when updates occur, as well as to add a label to the container to make it easier to determine the version of the agent that is running in production.

## Update FluentBit on Dev environment

Create ECR repository:

```bash
aws ecr create-repository --repository-name=orchard-fluent-bit --image-scanning-configuration scanOnPush=true
```

Build and publish Docker image:

```bash
docker build -t orchard-fluent-bit:local . \
  && docker tag orchard-fluent-bit:local 103233932089.dkr.ecr.us-east-1.amazonaws.com/orchard-fluent-bit:latest \
  && docker push 103233932089.dkr.ecr.us-east-1.amazonaws.com/orchard-fluent-bit:latest
```
