Skip to content

Commit

Permalink
config: test build with FLB_HAVE_STATIC_CONF
Browse files Browse the repository at this point in the history
  • Loading branch information
bglimepoint committed Jun 5, 2024
1 parent 0ac9ee0 commit b87670a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/pr-compile-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,15 @@ jobs:
push: false
load: false
provenance: false

- name: Attempt to build current source for CentOS 7 using static config
uses: docker/build-push-action@v5
with:
context: .
file: ./dockerfiles/Dockerfile.centos7
# No need to use after this so discard completely
push: false
load: false
provenance: false
build-args:
- "FLB_STATIC_CONF=true"

Check failure on line 44 in .github/workflows/pr-compile-check.yaml

View workflow job for this annotation

GitHub Actions / PR - Actionlint

expected scalar node for string value but found sequence node with "!!seq" tag
4 changes: 3 additions & 1 deletion dockerfiles/Dockerfile.centos7
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ RUN yum -y update && \
COPY . /src/
WORKDIR /src/build

ARG FLB_STATIC_CONF

RUN cmake3 -DCMAKE_INSTALL_PREFIX=/opt/fluent-bit/ -DCMAKE_INSTALL_SYSCONFDIR=/etc/ \
-DFLB_RELEASE=On -DFLB_TRACE=On \
-DFLB_TESTS_INTERNAL=On -DFLB_TESTS_RUNTIME=On \
-DFLB_SQLDB=On -DFLB_HTTP_SERVER=On \
-DFLB_OUT_KAFKA=On \
-DFLB_JEMALLOC=On \
-DFLB_CHUNK_TRACE=On \
-DFLB_OUT_PGSQL=On ../
-DFLB_OUT_PGSQL=On ${FLB_STATIC_CONF:+-DFLB_STATIC_CONF=/tmp} ../

RUN make -j "$(getconf _NPROCESSORS_ONLN)"

0 comments on commit b87670a

Please sign in to comment.