Code Monkey home page Code Monkey logo

Comments (8)

rohanKanojia avatar rohanKanojia commented on June 21, 2024

@mwinzie : Could you please try this https://github.com/fabric8io/docker-maven-plugin/tree/master/samples/multi-architecture

from fabric8-maven-plugin.

rohanKanojia avatar rohanKanojia commented on June 21, 2024

@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.

from fabric8-maven-plugin.

mwinzie avatar mwinzie commented on June 21, 2024

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>

from fabric8-maven-plugin.

mwinzie avatar mwinzie commented on June 21, 2024

I am using fabric8 maven plugin not docker maven plugin

from fabric8-maven-plugin.

rohanKanojia avatar rohanKanojia commented on June 21, 2024

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>

from fabric8-maven-plugin.

mwinzie avatar mwinzie commented on June 21, 2024

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

from fabric8-maven-plugin.

rohanKanojia avatar rohanKanojia commented on June 21, 2024

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

from fabric8-maven-plugin.

stale avatar stale commented on June 21, 2024

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!

from fabric8-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.