Skip to content
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

change buildAndLoadNativePlatform to buildAndLoadSinglePlatform #1665

Merged

Conversation

martyvona
Copy link

This PR enables building a single-platform image with an architecture that differs from the native platform. For example, if you're build machine is an arm M1 but you need to test and deploy amd64. Note that while docker currently does not support multi-architecture images in the local image cache, it will use emulation to run e.g. an amd64 image on an arm host.

This is in follow up to #1557 (comment)

Signed-off-by: Marsette Vona <martyvona@gmail.com>
@martyvona martyvona mentioned this pull request Apr 11, 2023
@chonton
Copy link
Contributor

chonton commented Apr 11, 2023

LGTM. @rohanKanojia, feel free to merge.

@codecov
Copy link

codecov bot commented Apr 12, 2023

Codecov Report

Merging #1665 (1b8282e) into master (aa49dd4) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 1b8282e differs from pull request most recent head e1f3f37. Consider uploading reports for the commit e1f3f37 to get more accurate results

@@            Coverage Diff            @@
##             master    #1665   +/-   ##
=========================================
  Coverage     63.85%   63.86%           
- Complexity     2184     2185    +1     
=========================================
  Files           170      170           
  Lines          9947     9949    +2     
  Branches       1363     1364    +1     
=========================================
+ Hits           6352     6354    +2     
  Misses         3062     3062           
  Partials        533      533           
Impacted Files Coverage Δ
...io/fabric8/maven/docker/service/BuildXService.java 71.42% <100.00%> (+0.41%) ⬆️

@rohanKanojia
Copy link
Member

@martyvona : Thanks, Could you please add a test and a line to doc/changelog.md regarding this change?

Signed-off-by: Marsette Vona <martyvona@gmail.com>
Signed-off-by: Marsette Vona <martyvona@gmail.com>
Signed-off-by: Marsette Vona <martyvona@gmail.com>
@martyvona
Copy link
Author

@rohanKanojia done

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@chonton
Copy link
Contributor

chonton commented Apr 18, 2023

@rohanKanojia ready to merge

@rohanKanojia rohanKanojia merged commit e1a9e88 into fabric8io:master Apr 18, 2023
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