Skip to content

Commit

Permalink
Upgrade fluentbit version to 3.1.2 (#166)
Browse files Browse the repository at this point in the history
* Upgrade fluentbit version to 3.1.2

* fix issue with github action not recognizing docker-compose

* Add a . to trigger rerun of GH actions
  • Loading branch information
maya-jha authored Sep 18, 2024
1 parent 085c480 commit 747dc5c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Prerequisites
- Fluent Bit
- A Go environment. On Mac,you can install it with `brew install go`
- A Go environment. On Mac,you can install it with `brew install go`.
- Cross-compilation requirements (optional, only required when building for non-native platforms):
- For `linux/arm64` cross-compilation: `aarch64-linux-gnu-gcc` and `aarch64-linux-gnu-g++` compilers.
- For `linux/arm/v7` cross-compilation: `arm-linux-gnueabihf-gcc` and `arm-linux-gnueabihf-g++` compilers.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
RUN echo "Building for ${TARGETPLATFORM} architecture"
RUN make ${TARGETPLATFORM}

FROM fluent/fluent-bit:3.0.4
FROM fluent/fluent-bit:3.1.2

COPY --from=builder /go/src/github.com/newrelic/newrelic-fluent-bit-output/out_newrelic-linux-*.so /fluent-bit/bin/out_newrelic.so
COPY *.conf /fluent-bit/etc/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.windows
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# escape=`

ARG FLUENTBIT_VERSION=3.0.4
ARG FLUENTBIT_VERSION=3.1.2
ARG WINDOWS_VERSION=ltsc2019

#################################################
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_debug
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
RUN echo "Building for ${TARGETPLATFORM} architecture"
RUN make ${TARGETPLATFORM}

FROM fluent/fluent-bit:3.0.4-debug
FROM fluent/fluent-bit:3.1.2-debug

COPY --from=builder /go/src/github.com/newrelic/newrelic-fluent-bit-output/out_newrelic-linux-*.so /fluent-bit/bin/out_newrelic.so
COPY *.conf /fluent-bit/etc/
Expand Down
10 changes: 5 additions & 5 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ clean_up () {
if [[ $ARG -ne 0 ]]; then
echo "Test failed, showing docker logs"
echo "- Mockserver"
docker-compose -f ./test/docker-compose.yml logs mockserver
docker compose -f ./test/docker-compose.yml logs mockserver
echo "- Fluent Bit"
docker-compose -f ./test/docker-compose.yml logs newrelic-fluent-bit-output
docker compose -f ./test/docker-compose.yml logs newrelic-fluent-bit-output
fi

echo "Cleaning up"
rm -r ./test/testdata || true
docker-compose -f ./test/docker-compose.yml down
docker compose -f ./test/docker-compose.yml down

exit $ARG
}
Expand All @@ -41,7 +41,7 @@ function run_test {
touch ./test/testdata/fbtest.log

echo "Starting docker compose"
docker-compose -f ./test/docker-compose.yml up -d
docker compose -f ./test/docker-compose.yml up -d

# Waiting mockserver to be ready
max_retry=10
Expand Down Expand Up @@ -79,7 +79,7 @@ function run_test {

echo "Tearing down test for image ${NR_FB_IMAGE}"
rm -r ./test/testdata || true
docker-compose -f ./test/docker-compose.yml down
docker compose -f ./test/docker-compose.yml down
}


Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package main

const VERSION = "2.0.1"
const VERSION = "2.0.2"

0 comments on commit 747dc5c

Please sign in to comment.