Windows container builds failing
Bug Report
Describe the bug
Windows container builds are failing due to OpenSSL issues.
To Reproduce
The nightly unstable builds are showing this.
Additional context
Looks like we install OpenSSL via Chocolatey: https://github.com/fluent/fluent-bit/blob/228b85715f27993b41fa012b736d5a8b4d5f139c/dockerfiles/Dockerfile.windows#L57
https://github.com/fluent/fluent-bit/actions/runs/7650543049/job/20846801549#step:4:313 suggests it is in the same place:
Download of Win64OpenSSL-3_2_0.exe (199.92 MB) completed.
Hashes match.
Installing openssl...
openssl has been installed.
WARNING: No registry key found based on 'OpenSSL-Win'
PATH environment variable does not have C:\Program Files\OpenSSL-Win64\bin in it. Adding...
WARNING: OPENSSL_CONF has been set to C:\Program Files\OpenSSL-Win64\bin\openssl.cfg
openssl can be automatically uninstalled.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
The install of openssl was successful.
Software installed to 'C:\Program Files\OpenSSL-Win64\'
And this is the directory we specify: https://github.com/fluent/fluent-bit/blob/228b85715f27993b41fa012b736d5a8b4d5f139c/dockerfiles/Dockerfile.windows#L63
RUN cmake -G "'Visual Studio 16 2019'" -DOPENSSL_ROOT_DIR='C:\Program Files\OpenSSL-Win64' -DCMAKE_BUILD_TYPE=Release ../;`
cmake --build . --config Release;
It seems to be failing but also seems to find version 3.2.0 which is the version we install:
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found version "3.2.0")
CMake Error at CMakeLists.txt:627 (MESSAGE):
OpenSSL required on Windows, see DEVELOPER_GUIDE.md
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.
This issue was closed because it has been stalled for 5 days with no activity.