This repository was archived by the owner on Mar 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 490
Plugin fails to run on Apple silicon (M1, M1 Pro, M1 Max) #394
Comments
This project has been abandoned. The error you came across is from Java Native Runtime used by Spotify docker-client project which has been abandoned too. I think |
Thank you @jedvardsson . This was actually quite easy to do: <plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>docker-build</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>docker</executable>
<workingDirectory>${project.basedir}</workingDirectory>
<arguments>
<argument>build</argument>
<argument>-f</argument>
<argument>docker/Dockerfile</argument>
<argument>--build-arg</argument>
<argument>JAR_FILE=target/${project.artifactId}-${project.version}-${jar.suffix}.jar</argument>
<argument>-t</argument>
<argument>${parent.groupId}/${parent.artifactId}/${project.artifactId}:${project.version}</argument>
<argument>.</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin> |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is this a BUG REPORT or FEATURE REQUEST?:
BUG REPORT
Description
The plugin fails to build the Docker image. This seems to be regardless of the plugin configuration.
How to reproduce
Run the plugin on Apple silicon, such as a MacBook Pro with the M1 Pro chip.
What do you expect
The plugin should be able to build the docker image.
What happened instead
[Describe the actual results]
Software:
docker version
:Full backtrace
The root cause seems to be
(fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64e'))
The text was updated successfully, but these errors were encountered: