alfresco-transform-core
alfresco-transform-core copied to clipboard
Can't build in Ubuntu 20.04
I'm trying to build on my Ubuntu 20.04 but always get an error, no matter what I do
[WARNING] There were 0 download errors - check the warnings above [INFO] [INFO] --- maven-jar-plugin:3.2.0:test-jar (default) @ alfresco-transform-imagemagick-boot --- [INFO] Building jar: /home/ubuntu/alfresco-transform-core-2.5.3/alfresco-transform-imagemagick/alfresco-transform-imagemagick-boot/target/alfresco-transform-imagemagick-boot-2.5.3-tests.jar [INFO] [INFO] --- fabric8-maven-plugin:4.4.0:build (build-image) @ alfresco-transform-imagemagick-boot --- [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] F8: Cannot access cluster for detecting mode: Unknown host kubernetes.default.svc: Name or service not known [INFO] F8: Running in Kubernetes mode [INFO] F8: Building Container image with Docker in Kubernetes mode [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] F8: Cannot access cluster for detecting mode: Unknown host kubernetes.default.svc [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] F8: Cannot access cluster for detecting mode: Unknown host kubernetes.default.svc [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] F8: Cannot access cluster for detecting mode: Unknown host kubernetes.default.svc [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring. [WARNING] F8: Cannot access cluster for detecting mode: Unknown host kubernetes.default.svc [WARNING] Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring.
Failed to execute the build: io.fabric8.maven.docker.access.DockerAccessException: Unable to build image [alfresco/alfresco-imagemagick:latest] : Connection reset by peer
Thanks!
I think there may be an issue with "io.fabric8.fabric8-maven-plugin". As a workaround you may be able to edit /etc/docker/daemon.json and add:
"debug" : true,
"experimental" : true,
Then restart your docker daemon / service.
At some point we need to completely switch-over to the "io.fabric8.docker-maven-plugin" which may not require the workaround (tbc).
I'm having the same issue in Ubuntu 22.04.
@montgolfiere your workaround worked, well in fact only "experimental" was required.
Please could you point us to what experimental feature is required by the actual build process. I'm curious about it as Ubuntu 22.04 is shipping with Docker 20.10.12 which is a quite modern version of docker.
Thanks.