Skip to content

dockerfile: windows: Create an image of windows nano server ltsc2025 - #12219

Merged
edsiper merged 6 commits into
masterfrom
cosmo0920-create-windows-nano-server-image
Aug 4, 2026
Merged

dockerfile: windows: Create an image of windows nano server ltsc2025#12219
edsiper merged 6 commits into
masterfrom
cosmo0920-create-windows-nano-server-image

Conversation

@cosmo0920

@cosmo0920 cosmo0920 commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

To create Windows Nano Server, we needed the following things:

  • Link OneCore.dll instead of the default dlls that are specified by cmake implicitly
  • Write the full path of Fluent Bit as an entrypoint
  • Disable not provided relying on plugins such as in_windows_exporter_metrics because of lacking WMI, perflib, and PDH functionality on NanoServer
  • Do not use winlog due to lack of the default Windows EventLog channel of Setup on Nano Server

After fulfilling these conditions, we're able to run Fluent Bit on Windows Nano Server.
In this PR, we just enabled only for Nano Server ltsc2025.
This is because ltsc2022 will be EOL within 6 months (until January 12th 2027).

Closes #10255.


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:

  • Example configuration file for the change
  • Debug log output from testing the change
  • Attached Valgrind output that shows no leaks or memory corruption was found

If this is a change to packaging of containers or native binaries then please confirm it works for all targets.

  • Run local packaging test showing all targets (including any new ones) build.
  • Set ok-package-test label to test for all targets (requires maintainer to do).

Documentation

  • Documentation required for this feature

Backporting

  • Backport to latest stable release.

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.

Summary by CodeRabbit

  • New Features

    • Added support for running Fluent Bit in Windows Nano Server containers.
    • Added a preconfigured logging setup that accepts forwarded records and outputs them for inspection.
    • Windows container builds now support Server Core 2022, Server Core 2025, and Nano Server 2025 variants.
    • Added the Windows Nano Server 2025 image to staging releases.
  • Tests

    • Added automated validation to confirm Nano Server containers start successfully, remain running, and clean up after testing.

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The PR adds a Nano Server Windows image for Fluent Bit. It parameterizes Windows base images and updates pull-request, production, and staging release workflows for Server Core 2022, Server Core 2025, and Nano Server 2025.

Changes

Windows container images

Layer / File(s) Summary
Nano Server image construction
dockerfiles/Dockerfile.windows.nano, dockerfiles/Dockerfile.windows, conf/fluent-bit-nano.conf
The new multi-stage Dockerfile builds Fluent Bit with Windows tooling and vcpkg, packages its executable and configuration files, and runs them on Nano Server. The existing Dockerfile accepts a configurable Windows server type.
Pull-request image matrix and validation
.github/workflows/pr-image-tests.yaml
The pull-request workflow builds three Windows variants with matrix-selected Dockerfiles and tags. Nano Server builds start a container, verify that it remains running, print logs, and remove it.
Production image matrix and release integration
.github/workflows/call-build-images.yaml, .github/workflows/staging-release.yaml
The production workflow uses matrix-specific Dockerfiles, image prefixes, and cache references. It adds the Nano Server health check and cleanup flow. The staging release matrix includes the Nano Server 2025 image.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

Suggested labels: ci/integration-docker-ok

Suggested reviewers: patrick-stephens

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Linked Issues check ✅ Passed The PR adds Windows Nano Server support and compatible build and runtime configuration for the lightweight-image goal in [#10255].
Out of Scope Changes check ✅ Passed The workflow, Dockerfile, configuration, and release-matrix changes directly support building, testing, and releasing the Windows Nano Server image.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: creating a Windows Nano Server LTSC 2025 image.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cosmo0920-create-windows-nano-server-image

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

…ality

Because NanoServer does not provide perflib and pdh functions on their
functionalities.

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
… NanoServer

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
…2025

Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
@cosmo0920
cosmo0920 force-pushed the cosmo0920-create-windows-nano-server-image branch from bb53cb1 to 0119de8 Compare August 4, 2026 10:35

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb53cb139d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/call-build-images.yaml
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/pr-image-tests.yaml:
- Around line 154-176: Replace the liveness-only Nano Server checks in
.github/workflows/pr-image-tests.yaml lines 154-176 and
.github/workflows/call-build-images.yaml lines 466-488 with the same end-to-end
Forward route test: send valid multi-record and split-write payloads, verify
every accepted record appears exactly once in docker logs, exercise malformed,
null or missing-field, and boundary-size payloads, and confirm the container
remains running. Apply the equivalent test implementation at both workflow sites
so production image validation matches pull-request validation.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 70d21771-988b-49f4-acf8-8b2a35d6e876

📥 Commits

Reviewing files that changed from the base of the PR and between cbe1253 and bb53cb1.

📒 Files selected for processing (5)
  • .github/workflows/call-build-images.yaml
  • .github/workflows/pr-image-tests.yaml
  • conf/fluent-bit-nano.conf
  • dockerfiles/Dockerfile.windows
  • dockerfiles/Dockerfile.windows.nano

Comment thread .github/workflows/pr-image-tests.yaml
@edsiper
edsiper merged commit 9fab354 into master Aug 4, 2026
53 of 60 checks passed
@edsiper
edsiper deleted the cosmo0920-create-windows-nano-server-image branch August 4, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fluent-bit support windows nano server

2 participants