Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Multi-Architecture Build query #1838

Closed
mwinzie opened this issue Aug 16, 2022 · 8 comments
Closed

Multi-Architecture Build query #1838

mwinzie opened this issue Aug 16, 2022 · 8 comments
Labels
status/stale Issue/PR considered to be stale

Comments

@mwinzie
Copy link

mwinzie commented Aug 16, 2022

Description

I am trying to implement linux/s390x platform to my images as currently am getting images with linux/amd64 architecture. Tried using buildx and specify the platform no success.

  • f-m-p version :

  • Maven version (mvn -v) :
    fabric8-maven-plugin 4.3.1

  • Kubernetes / OpenShift setup and version :

  • If it's a bug, how to reproduce :

  • If it's a feature request, what is your use case :

  • Sample project : [GitHub Clone URL]

@mwinzie mwinzie changed the title Multiplatform Architecture query Multi-Architecture Build query Aug 16, 2022
@rohanKanojia
Copy link
Member

@rohanKanojia
Copy link
Member

rohanKanojia commented Aug 16, 2022

@mwinzie : Fabric8 Maven Plugin is no longer maintained. It's been refactored into Eclipse JKube. It's the same project but with different maven coordinates.

If you're coming to Kubernetes background, I suggest creating same issue on Eclipse JKube. I do see createImageOptions in Kubernetes Maven Plugin documentation which might be helpful for your use case.

@mwinzie
Copy link
Author

mwinzie commented Aug 16, 2022

I will go through it, thanks.
In the meantime from the pom file using fabric8 maven plugin is there a way you can specify the platform to some architecture and while executing the build goal the image to pick the architecture?
This is my profile from the pom

<profile>
		<id>openshift-deployment</id>
		<activation>
			<activeByDefault>false</activeByDefault>
		</activation>
		<build>
			<plugins>
				<plugin>
					<groupId>io.fabric8</groupId>
					<artifactId>fabric8-maven-plugin</artifactId>
					<version>4.3.1</version>
					<executions>
						<execution>
							<goals>
								<goal>resource</goal>
								<goal>build</goal>
							</goals>
						</execution>
					</executions>
				</plugin>
			</plugins>
		</build>
	</profile>

@mwinzie
Copy link
Author

mwinzie commented Aug 16, 2022

I am using fabric8 maven plugin not docker maven plugin

@rohanKanojia
Copy link
Member

I don't think this feature is present in Fabric8 Maven Plugin. I think you'd need to migrate to Kubernetes Maven Plugin (mvn org.eclipse.jkube:kubernetes-maven-plugin:migrate) and provide <platform> argument in <image> > <build> > <createImageOptions>

@mwinzie
Copy link
Author

mwinzie commented Aug 17, 2022

Thanks, it worked. It was able to pick the platform.
But would like for it to pick a specific base image and platform like openjdk/openjdk-11-rhel7 with linuxs390x platform

@rohanKanojia
Copy link
Member

@mwinzie : Sorry, I'm not sure I understand correctly. Could you please create an equivalent issue on https://github.com/eclipse/jkube repository?

@stale
Copy link

stale bot commented Nov 15, 2022

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

@stale stale bot added the status/stale Issue/PR considered to be stale label Nov 15, 2022
@stale stale bot closed this as completed Nov 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/stale Issue/PR considered to be stale
Projects
None yet
Development

No branches or pull requests

2 participants