Unable to build for linux/arm64
Opened this issue · 0 comments
rpgoldman commented
Because I have a Mac M1, I tried rebuilding the docker image locally for the arm64 architecture. Here's what I did:
$ docker buildx build --platform linux/arm64 .
When I try this, I get the following error, apparently because the JADE library is not available. Any idea what could be wrong?
Downloaded from central: https://repo.maven.apache.org/maven2/junit/junit/4.8.1/junit-4.8.1.pom (949 B at 23 kB/s)
#7 3.578 [INFO] ------------------------------------------------------------------------
#7 3.578 [INFO] BUILD FAILURE
#7 3.578 [INFO] ------------------------------------------------------------------------
#7 3.579 [INFO] Total time: 2.755 s
#7 3.579 [INFO] Finished at: 2022-02-22T20:49:06Z
#7 3.580 [INFO] ------------------------------------------------------------------------
#7 3.581 [ERROR] Failed to execute goal on project dcop-adopt: Could not resolve dependencies for project dcop-adopt:dcop-adopt:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.tilab.jade:jade:jar:4.5.0: Failed to read artifact descriptor for com.tilab.jade:jade:jar:4.5.0: Could not transfer artifact com.tilab.jade:jade:pom:4.5.0 from/to tilab (https://jade.tilab.com/maven/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
#7 3.582 [ERROR]
#7 3.582 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#7 3.582 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#7 3.583 [ERROR]
#7 3.583 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#7 3.583 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
------
error: failed to solve: executor failed running [/bin/sh -c mvn install]: exit code: 1
Weirdly, this seems to be an SSL problem, as indicated by the sun.security.provider.certpath.SunCertPathBuilderException
in the backtrace, but I don't have any trouble with the URL in my browser. I suppose there might be some oddity where the Docker image doesn't have some required root certificate?
Is there a workaround where one could download this library by hand to avoid needing to figure out how to fix SSL configuration in a docker container?