spline
spline copied to clipboard
java.lang.UnsatisfiedLinkError: could not load FFI provider com.spotify.docker.client.shaded.jnr.ffi.provider.jffi.Provider When building docker images
Scala 2.12 Java 11 CPU M1 OS Mac OS
mvn install -Ddocker -Ddockerfile.repositoryUrl=my -DskipTests
Currently used docker maven plugin is not maintained anymore if the issue is not fixable possible replacement is: https://github.com/fabric8io/docker-maven-plugin
we could test it in this repo, but the fix should go to the root-pom repo
Workaround assuming current DOCKER_HOST is unix:///Users/abac720/.colima/docker.sock :
brew install socat
socat TCP-LISTEN:2375,range=127.0.0.1/32,reuseaddr,fork unix:///Users/abac720/.colima/docker.sock
# in different tab
export DOCKER_HOST=tcp://127.0.0.1:2375
mvn install -Ddocker -Ddockerfile.repositoryUrl=my -DskipTests
from here https://stackoverflow.com/questions/71300031/docker-image-build-failed-on-mac-m1-chip
Fixed in AbsaOSS/root-pom#6 and #1166 respectively.