slackware-container icon indicating copy to clipboard operation
slackware-container copied to clipboard

Multiarch support

Open vk496 opened this issue 4 years ago • 2 comments

Hello,

Docker is working in support muti architectures images, completely transparent for the users. Would be really great to have this in the slackware images (amd64 and arm64 as minimum). A example for alpine image:

$ docker buildx imagetools inspect alpine
Name:      docker.io/library/alpine:latest
MediaType: application/vnd.docker.distribution.manifest.list.v2+json
Digest:    sha256:6a92cd1fcdc8d8cdec60f33dda4db2cb1fcdcacf3410a8e05b3741f44a9b5998
           
Manifests: 
  Name:      docker.io/library/alpine:latest@sha256:57334c50959f26ce1ee025d08f136c2292c128f84e7b229d1b0da5dac89e9866
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/amd64
             
  Name:      docker.io/library/alpine:latest@sha256:fa56b4f2cbe6498fb15be09b0e026b61d1883bf0550f0770c6193a40da12425b
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/arm/v6
             
  Name:      docker.io/library/alpine:latest@sha256:d69be64353c91f02fbccbad56e545122636a02d2ee1c9ffa99a6219a8d4d9f73
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/arm/v7
             
  Name:      docker.io/library/alpine:latest@sha256:b206388a8e17c4a9c8e1c0d8f28dde06632dee48ac8409a6e5460280f978f593
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/arm64/v8
             
  Name:      docker.io/library/alpine:latest@sha256:ef77e1079a17df210045ffa5dc19214ccdb89e001f32ffab2e61a1c743c2aec7
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/386
             
  Name:      docker.io/library/alpine:latest@sha256:afd6ffe2b877c475f697a2c19b9f23f97d21e176c652e91f028d9400e21f8617
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/ppc64le
             
  Name:      docker.io/library/alpine:latest@sha256:c540a864de9947de37986965a796751279904c3b8c0f4e487fa9cf52f6372079
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/s390x

If you need help to implement that, let me know :+1:

BR, Valentín

vk496 avatar Aug 09 '19 09:08 vk496

Good thought. I've been using buildah/podman to build lately. I'll have to check on how to build multi-arch with these tools. Is that something you have experience with?

vbatts avatar Aug 12 '19 18:08 vbatts

I have experience building a multiarch project, usually based on alpine (https://github.com/vk496/stronghome).

I don't have experience with buildah/podman, but since Docker allow run (and build) natively code from other arch, I would suggest to create a Docker image that create the minimal slackware image instead of trying to do cross-compilation for different archs.

BR, Valentín

El 12 de agosto de 2019 20:59:58 CEST, Vincent Batts [email protected] escribió:

Good thought. I've been using buildah/podman to build lately. I'll have to check on how to build multi-arch with these tools. Is that something you have experience with?

-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/vbatts/slackware-container/issues/12#issuecomment-520552903

-- Enviado desde mi dispositivo Android con K-9 Mail. Por favor, disculpa mi brevedad.

vk496 avatar Aug 12 '19 19:08 vk496