Skip to content

Conversation

rchincha
Copy link
Contributor

Currently, stacker is bound to the host platform for all its operations. This PR allows for build a container image different from the host platform by overriding the platform OS.

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

codecov bot commented Jul 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.51%. Comparing base (93e2057) to head (9c4974e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #711      +/-   ##
==========================================
+ Coverage   60.41%   60.51%   +0.10%     
==========================================
  Files          59       59              
  Lines        6444     6461      +17     
==========================================
+ Hits         3893     3910      +17     
  Misses       1906     1906              
  Partials      645      645              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mikemccracken
Copy link
Contributor

This LGTM, while you're doing this, since it's basically the same change, do you want to add --override-arch as well?

@rchincha rchincha force-pushed the override-os branch 3 times, most recently from 5b782dc to 8f01b75 Compare August 1, 2025 03:21
@rchincha
Copy link
Contributor Author

rchincha commented Aug 1, 2025

Still debating if this should actually be a image tag directive like from: so we have fine-grained control.

@rchincha
Copy link
Contributor Author

rchincha commented Aug 1, 2025

https://github.com/project-zot/zot/blob/main/build/stacker.yaml#L61

^ hmm..maybe this PR can be shortened.

Currently, stacker is bound to the host platform for all its operations.
This PR allows for build a container image different from the host
platform by overriding the platform OS.

Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
@rchincha
Copy link
Contributor Author

rchincha commented Aug 1, 2025

...
loading docker://freebsd/freebsd-runtime:14.3
Copying blob b062b709ea99 done  
Copying config 786f2592a8 done  
Writing manifest to image destination
Storing signatures
filesystem abc built successfully

Local test passes

@hallyn hallyn merged commit 035f7e7 into project-stacker:main Aug 1, 2025
13 checks passed
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.

3 participants