-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
windows: build docker image with out_kafka and gzip #6214
Conversation
Probably this PR will be rejected, no problem. My changes
|
@patrick-stephens can you, please, take a look? |
Just checked my image in Kubernetes (with fluentbit helm chart)
Started successfully with kafka_out plugin! Current problems
Fixed with proper/additional volume mounts
Fixed with correct |
The Windows containers are not officially released or supported by the OSS project, they are provided primarily for reference but good to ensure they work. I do have a separate PR to provide OpenSSL as well but this was only around getting it to build so happy to have a better fix that verifies the container runs. Note your commits do not follow the contribution guidance and are not signed off for DCO so those will need fixing: https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes |
@cosmo0920 may have some input here. @alt-dima could you update your commit messages and sign them off? I'm reluctant to kick off the CI without it as we'll just have to do it again when the commits are updated. |
23f2478
to
530b8b0
Compare
To fix an issue I added to the dockerfile.windows:
But I'm not sure it is a good choice. |
Nice! Finally, all the problems were solved, will test some days.
|
Build for 64bit was fine, but for 32bit failed, probably because of
|
I have a problem with in_tail. Seems like rotation handling working correctly, but error appears. |
Signed-off-by: alt-dima <[email protected]>
Signed-off-by: alt-dima <[email protected]>
Signed-off-by: alt-dima <[email protected]>
Signed-off-by: alt-dima <[email protected]>
Signed-off-by: alt-dima <[email protected]>
Signed-off-by: alt-dima <[email protected]>
Signed-off-by: alt-dima <[email protected]>
Signed-off-by: alt-dima <[email protected]>
Signed-off-by: alt-dima <[email protected]>
Signed-off-by: alt-dima <[email protected]>
Signed-off-by: alt-dima <[email protected]>
e6c53e3
to
b52ba2e
Compare
Signed-off-by: alt-dima <[email protected]>
@@ -75,7 +75,7 @@ if(FLB_WINDOWS_DEFAULTS) | |||
set(FLB_OUT_LIB Yes) | |||
set(FLB_OUT_NULL Yes) | |||
set(FLB_OUT_FLOWCOUNTER Yes) | |||
set(FLB_OUT_KAFKA No) |
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.
This is just for my curiosity.
Should we disable for out_kafka plugin building on Windows and specify enabling parameter on configure at Windows container building?
This is because to build out_kafka plugin on Windows, we have to introduce dependent zlib library for our CI tasks.
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.
Did we do this anyway now @cosmo0920? Ah no, I think that was just for our commercial offering...
#pragma comment(lib, "libcrypto64MT.lib") | ||
#pragma comment(lib, "libssl64MT.lib") |
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.
Could you determine whether the using 64MT or 32MT suffixed libraries with CMakeLists.txt?
This change should be working only for 64bit of Windows.
@@ -38,6 +38,11 @@ RUN Start-Process /local/vc_redist.x64.exe -ArgumentList '/install', '/quiet', ' | |||
Copy-Item -Path /Windows/System32/vccorlib140.dll -Destination /fluent-bit/bin/; ` | |||
Copy-Item -Path /Windows/System32/vcruntime140.dll -Destination /fluent-bit/bin/; | |||
|
|||
# Install ZLIB: https://github.com/horta/zlib.install | |||
ADD https://github.com/alt-dima/zlib.install/raw/master/install.bat /local/install_zlib.bat |
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.
We probably should not depend on master
of another repo we have no control over - potentially this is updated and breaks the build best case (worst case it's a malware attack vector). At the very least this makes a build non-reproducible.
We should either put the commands inline in the Dockerfile or move the script into this repo as part of the PR - then it can be versioned alongside.
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
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.