Skip to content

ci: use smaller (nanoserver) mongodb image on Windows#1190

Draft
aneojgurhem wants to merge 1 commit into
mainfrom
jg/mongoci
Draft

ci: use smaller (nanoserver) mongodb image on Windows#1190
aneojgurhem wants to merge 1 commit into
mainfrom
jg/mongoci

Conversation

@aneojgurhem
Copy link
Copy Markdown
Contributor

@aneojgurhem aneojgurhem commented Apr 22, 2026

Motivation

The MongoDB image used on Windows CI runners was already OS-aware but was based on Windows Server Core, which is a large image. Switching to the nanoserver variant reduces image size and speeds up CI on Windows runners.

Description

Updates the TF_VAR_database_image variable in the justfile to select mongo:nanoserver instead of the previous Windows Server Core-based MongoDB image when running on Windows. The Linux path continues to use the standard mongo image unchanged.

Testing

Validated via the CI pipeline on Windows runners. No new unit tests are required as this is a CI/infrastructure configuration change.

Impact

  • Configuration: No impact on end users or production deployments.
  • Dependencies: No new dependencies; mongo:nanoserver is an official MongoDB image variant.
  • Performance: Smaller image size on Windows CI runners reduces pull time and disk usage.
  • Behaviour: No functional change — the same MongoDB version is used, just with a smaller Windows base image.

Additional Information

No changes to Terraform module files were needed.

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • I have thoroughly tested my modifications and added tests when necessary.
  • Tests pass locally and in the CI.
  • I have assessed the performance impact of my modifications.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 22, 2026

🔍 Vulnerabilities of dockerhubaneo/armonik_control:0.38.1-jgmongoci.5.sha.97603b88

📦 Image Reference dockerhubaneo/armonik_control:0.38.1-jgmongoci.5.sha.97603b88
digestsha256:e94bd08194d7a2704c15208eb2d94a395a3ad475a31436a41175ee11c2be0b8f
vulnerabilitiescritical: 0 high: 0 medium: 0 low: 0
platformlinux/amd64
size74 MB
packages121

@aneojgurhem aneojgurhem marked this pull request as draft April 22, 2026 21:18
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant