Skip to content

Commit

Permalink
dockerfiles: Add FLB_ENFORCE_ALIGNMENT variable
Browse files Browse the repository at this point in the history
Signed-off-by: Shuichiro MAKIGAKI <[email protected]>
  • Loading branch information
shuichiro-makigaki committed Aug 17, 2024
1 parent 1a19703 commit 01e7934
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ ENV FLB_NIGHTLY_BUILD=$FLB_NIGHTLY_BUILD
ARG FLB_CHUNK_TRACE=On
ENV FLB_CHUNK_TRACE=${FLB_CHUNK_TRACE}

ARG FLB_ENFORCE_ALIGNMENT=Off
ENV FLB_ENFORCE_ALIGNMENT=${FLB_ENFORCE_ALIGNMENT}

RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log

ENV DEBIAN_FRONTEND noninteractive
Expand Down Expand Up @@ -76,6 +79,7 @@ RUN cmake -DFLB_RELEASE=On \
-DFLB_NIGHTLY_BUILD="$FLB_NIGHTLY_BUILD" \
-DFLB_LOG_NO_CONTROL_CHARS=On \
-DFLB_CHUNK_TRACE="$FLB_CHUNK_TRACE" \
-DFLB_ENFORCE_ALIGNMENT="$FLB_ENFORCE_ALIGNMENT" \
..

RUN make -j "$(getconf _NPROCESSORS_ONLN)"
Expand Down
5 changes: 4 additions & 1 deletion dockerfiles/Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ ARG WINDOWS_VERSION=ltsc2019
# Builder Image - Windows Server Core
FROM mcr.microsoft.com/windows/servercore:$WINDOWS_VERSION as builder

ARG FLB_ENFORCE_ALIGNMENT=Off
ENV FLB_ENFORCE_ALIGNMENT=${FLB_ENFORCE_ALIGNMENT}

RUN setx /M PATH "%PATH%;C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\WinFlexBison;C:\dev\vcpkg"

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
Expand Down Expand Up @@ -69,7 +72,7 @@ RUN vcpkg install --recurse openssl --triplet x64-windows-static; `
WORKDIR /src/build
COPY . /src/

RUN cmake -G "'Visual Studio 16 2019'" -DOPENSSL_ROOT_DIR='C:\dev\vcpkg\packages\openssl_x64-windows-static' -DFLB_LIBYAML_DIR='C:\dev\vcpkg\packages\libyaml_x64-windows-static' -DCMAKE_BUILD_TYPE=Release ../;`
RUN cmake -G "'Visual Studio 16 2019'" -DOPENSSL_ROOT_DIR='C:\dev\vcpkg\packages\openssl_x64-windows-static' -DFLB_LIBYAML_DIR='C:\dev\vcpkg\packages\libyaml_x64-windows-static' -DFLB_ENFORCE_ALIGNMENT=$env:FLB_ENFORCE_ALIGNMENT -DCMAKE_BUILD_TYPE=Release ../;`
cmake --build . --config Release;

# Set up config files and binaries in single /fluent-bit hierarchy for easy copy in later stage
Expand Down

0 comments on commit 01e7934

Please sign in to comment.