Skip to content

Commit

Permalink
add VERSION file for fluentbit image
Browse files Browse the repository at this point in the history
Signed-off-by: juicer <[email protected]>
  • Loading branch information
cw-Guo committed Jan 3, 2025
1 parent 369c7e5 commit 4a3ad09
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion cmd/fluent-watcher/fluentbit/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ARG FLUENT_BIT_BASE_VERSION=3.2.4

FROM golang:1.23.2-alpine3.19 as buildergo
RUN mkdir -p /fluent-bit
RUN mkdir -p /code
Expand All @@ -6,7 +8,7 @@ WORKDIR /code
RUN echo $(ls -al /code)
RUN CGO_ENABLED=0 go build -ldflags '-w -s' -o /fluent-bit/fluent-bit /code/cmd/fluent-watcher/fluentbit/main.go

FROM fluent/fluent-bit:3.1.8
FROM fluent/fluent-bit:${FLUENT_BIT_BASE_VERSION}
LABEL Description="Fluent Bit docker image" Vendor="Fluent" Version="1.0"

COPY conf/fluent-bit.conf conf/fluent-bit.yaml conf/parsers.conf /fluent-bit/etc/
Expand Down
4 changes: 3 additions & 1 deletion cmd/fluent-watcher/fluentbit/Dockerfile.debug
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ARG FLUENT_BIT_BASE_VERSION=3.2.4

FROM golang:1.23.2-alpine3.19 as buildergo
RUN mkdir -p /fluent-bit
RUN mkdir -p /code
Expand All @@ -6,7 +8,7 @@ WORKDIR /code
RUN echo $(ls -al /code)
RUN CGO_ENABLED=0 go build -ldflags '-w -s' -o /fluent-bit/fluent-bit /code/cmd/fluent-watcher/fluentbit/main.go

FROM fluent/fluent-bit:3.1.8-debug
FROM fluent/fluent-bit:${FLUENT_BIT_BASE_VERSION}-debug
LABEL Description="Fluent Bit docker image" Vendor="Fluent" Version="1.0"

COPY conf/fluent-bit.conf conf/fluent-bit.yaml conf/parsers.conf /fluent-bit/etc/
Expand Down
1 change: 1 addition & 0 deletions cmd/fluent-watcher/fluentbit/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.4

0 comments on commit 4a3ad09

Please sign in to comment.