cacti icon indicating copy to clipboard operation
cacti copied to clipboard

build(docker): support ARM64

Open petermetz opened this issue 4 years ago • 4 comments

Is your feature request related to a problem? Please describe.

ARM64 is an up and coming CPU architecture in the data center so we should publish docker images supporting it as well.

Describe the solution you'd like

First of all: The solution has to be fully automated, don't need more manual chores. Not sure if this can be done via DockerHub's automatic builds or not, but the end result should be the same as when you do

docker buildx build --platform linux/arm64,linux/amd64 -t $IMAGE_FQN . --push

(The above I have successfully used to build container images that run on my Raspberry Pi so I know it works, just not how this could be automated)

Describe alternatives you've considered

Maybe this can be done in the post_push hook we already use to tag the images built by the day+git hash?

cc: @takeutak @sfuji822 @jonathan-m-hamilton @hartm

petermetz avatar Jan 13 '21 22:01 petermetz

$ docker run --privileged --rm tonistiigi/binfmt --install all
Unable to find image 'tonistiigi/binfmt:latest' locally
latest: Pulling from tonistiigi/binfmt
8d4d64c318a5: Pull complete 
e9c608ddc3cb: Pull complete 
Digest: sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55
Status: Downloaded newer image for tonistiigi/binfmt:latest
installing: arm64 OK
installing: arm OK
installing: ppc64le OK
installing: riscv64 OK
installing: mips64le OK
installing: s390x OK
installing: mips64 OK
{
  "supported": [
    "linux/amd64",
    "linux/arm64",
    "linux/riscv64",
    "linux/ppc64le",
    "linux/s390x",
    "linux/386",
    "linux/mips64le",
    "linux/mips64",
    "linux/arm/v7",
    "linux/arm/v6"
  ],
  "emulators": [
    "jar",
    "llvm-14-runtime.binfmt",
    "llvm-18-runtime.binfmt",
    "python3.10",
    "qemu-aarch64",
    "qemu-arm",
    "qemu-mips64",
    "qemu-mips64el",
    "qemu-ppc64le",
    "qemu-riscv64",
    "qemu-s390x"
  ]
}

petermetz avatar Sep 09 '24 15:09 petermetz

This issue will be considered if the depending package remains, as part of the cleanup initiative: https://github.com/hyperledger-cacti/cacti/issues/4037

RafaelAPB avatar Oct 18 '25 16:10 RafaelAPB

@LordKubaya are there any updates on this issue?

RafaelAPB avatar Oct 18 '25 16:10 RafaelAPB

@LordKubaya are there any updates on this issue?

This PR https://github.com/hyperledger-cacti/cacti/pull/3955 enables us to update the test images of Fabric to ARM. So remains updating and testing those images. Also, publishing the CLI image in ARM is a thing to do.

LordKubaya avatar Oct 18 '25 16:10 LordKubaya