Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade fluentbit version to 3.1.2 #166

Merged
merged 3 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
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"
Loading