-
Notifications
You must be signed in to change notification settings - Fork 1.8k
dockerfile: Windows Containers image Fluent Bit NMake build #10180
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
dockerfile: Windows Containers image Fluent Bit NMake build #10180
Conversation
372305f to
da875e4
Compare
da875e4 to
70467a4
Compare
70467a4 to
22fa55e
Compare
…to ensure no build issue due to incompatibility with new CMake versions. Signed-off-by: Marat Abrarov <[email protected]>
…ported one for Linux containers. Signed-off-by: Marat Abrarov <[email protected]>
Signed-off-by: Marat Abrarov <[email protected]>
Signed-off-by: Marat Abrarov <[email protected]>
…t Bit within building of image for Windows Containers. Signed-off-by: Marat Abrarov <[email protected]>
Signed-off-by: Marat Abrarov <[email protected]>
c1a0b3d to
df6afec
Compare
Signed-off-by: Eduardo Silva Pereira <[email protected]>
|
note: I found some conflicts, I tried to fix them manually ... |
| SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"] | ||
|
|
||
| # Install Visual Studio Build Tools 2019 | ||
| # Install Visual Studio Build Tools 2019 (MSVS_VERSION=16) / 2022 (MSVS_VERSION=17, requires WINDOWS_VERSION=ltsc2022) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MSVS_VERSION=17 (Visual Studio Build Tools 2022) can be used even with WINDOWS_VERSION=ltsc2019:
$ docker build -t fluent/fluent-bit --build-arg MSVS_VERSION=17 -f dockerfiles/Dockerfile.windows .
...
Downloading Visual Studio Build Tools...
https://aka.ms/vs/17/release/vs_buildtools.exe -> C:\Users\ContainerAdministrator\AppData\Local\Temp\vs_buildtools.exe
https://aka.ms/vs/17/release/channel -> C:\local\VisualStudio.chman
Installing Visual Studio Build Tools into C:\BuildTools...
...
Successfully tagged fluent/fluent-bit:latest
$ docker run --rm fluent/fluent-bit --version
Fluent Bit v4.0.4
...
$ docker run --rm --entrypoint cmd fluent/fluent-bit
Microsoft Windows [Version 10.0.17763.678]
(c) 2018 Microsoft Corporation. All rights reserved.
...Moreover, GitHub actions for this repository use windows-latest runner (including test execution for pull requests) which hosts Visual Studio 2022. It means that CI/CD builds Fluent Bit for Windows on Windows Server 2022 using Visual C++ 2022, except Docker image for Windows.
Visual Studio 2022 supports Windows Server 2019 - refer to https://learn.microsoft.com/en-us/visualstudio/releases/2022/system-requirements#supported-operating-systems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed this comment in #10233
This PR is based on (includes) #10178 and provides workaround for #10158 by using NMake (instead of MSBuild) when building Fluent Bit as part of building image for Windows Containers.
Changes (excluding #10178):
Testing
ok-package-testlabel to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.