You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.42.0:build (default) on project arcadedb-package: Unable to build image [arcadedata/arcadedb] : "COPY failed: no source files were specified"
The current maven plugin works for me locally with profile -Pdocker which produces a working docker image locally.
I was hoping the list of platforms in docker.buildArg.ARCH would achieve this by building an image for each list member, then Apple Si would use arm64v8. Practically, I do not know, sorry; I could only test locally.
Assigning both @gramian and @robfrank to this issue. Right now I can generate Apple Silicon image by running manually a command, but the final goal is to make this automatic.
My current contribution is an adapted package/pom.xml and an adapted Dockerfile package/src/main/docker/Dockerfile, with which architecture dependent local image builds work, but automated deploy needs testing.
Please note I am using a naive way of making shell calls via Maven since I could neither get the tested Docker nor Kubernetes Maven plugins to have separate build and deploy phases for images. From my point of view there are interlocking issues for each which prevent this.
Activity
psytron commentedon Feb 25, 2023
potentially related: #795
lvca commentedon Feb 28, 2023
I merged @gramian PR, but I don't see the Apple Silicon image on dockerhub: https://hub.docker.com/repository/docker/arcadedata/arcadedb/tags?page=1&ordering=last_updated.
lvca commentedon Feb 28, 2023
Maybe this works better? fabric8io/docker-maven-plugin#1502
gramian commentedon Feb 28, 2023
I tried this plugin with:
in the
package/pom.xmlwhich fails with:The current maven plugin works for me locally with profile
-Pdockerwhich produces a working docker image locally.lvca commentedon Mar 1, 2023
How to generate also Apple Silicon? Is there a way to generate all the versions and deploy them to DockerHub?
gramian commentedon Mar 1, 2023
I was hoping the list of platforms in
docker.buildArg.ARCHwould achieve this by building an image for each list member, then Apple Si would usearm64v8. Practically, I do not know, sorry; I could only test locally.adubkov commentedon Mar 1, 2023
Just
arm64should work. In fact I build and running same image on both m1 pro and my local k8s setup on raspberry pi 4.https://hub.docker.com/r/adubkov/arcadedb/tags
I build it with following command:
But you need to run some other command before use
buildxit just I had it configured already.lvca commentedon Mar 2, 2023
Correct, running
docker build buildxworks. I was able to publish both amd64 and arm64 on dockerhub:Unfortunately, the maven plugin is pretty new, I wasn't able to figure out how to make this automatic by our CI (Github actions).
chore: temporary workaround to generate docker images for Apple Silic…
2 remaining items
lvca commentedon Mar 20, 2023
Assigning both @gramian and @robfrank to this issue. Right now I can generate Apple Silicon image by running manually a command, but the final goal is to make this automatic.
gramian commentedon Mar 20, 2023
My current contribution is an adapted
package/pom.xmland an adapted Dockerfilepackage/src/main/docker/Dockerfile, with which architecture dependent local image builds work, but automated deploy needs testing.Please note I am using a naive way of making shell calls via Maven since I could neither get the tested Docker nor Kubernetes Maven plugins to have separate build and deploy phases for images. From my point of view there are interlocking issues for each which prevent this.
PS: I started off: https://dzone.com/articles/build-docker-image-from-maven
robfrank commentedon May 14, 2023
I managaed to create a multiplatfrom image using the fabric8 docker maven plugin on this PR: #1070
Let e cleanup and verify that all is working fine, than I'll move the PR out of the draft status
lvca commentedon May 22, 2023
Thanks @robfrank we can close this issue now.
chore(deps): update testcontainers requirement from >=4.9.1 to >=4.13…
chore(deps): bump uuid and testcontainers in /e2e-js [skip ci]
chore: temporary workaround to generate docker images for Apple Silic…
chore(deps): update testcontainers requirement from >=4.9.1 to >=4.13…
chore(deps): bump uuid and testcontainers in /e2e-js [skip ci]