Giter Site home page Giter Site logo

Comments (8)

maltegrosse avatar maltegrosse commented on July 18, 2024 1

Can you add armv7 too?
you can extend your github workflow by adding buildx: https://github.com/maltegrosse/keycloak-multiarch/blob/main/.github/workflows/container.yml#L36

and later add
platforms: linux/amd64,linux/arm64,linux/arm

from softethervpn.

siomiz avatar siomiz commented on July 18, 2024 1

Thanks everyone, finally figured out how workflow works with docker buildx...

 docker buildx imagetools inspect siomiz/softethervpn:latest
Name:      docker.io/siomiz/softethervpn:latest
MediaType: application/vnd.docker.distribution.manifest.list.v2+json
Digest:    sha256:ef0281300b33adf4daa30829d5e8df2505b678605712b3d50c34ed4308d8e121
           
Manifests: 
  Name:      docker.io/siomiz/softethervpn:latest@sha256:8bc51c8c6720bf4d4e48d8db49a389edf8ff09c34c6aaf732c57b93424c54313
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/amd64
             
  Name:      docker.io/siomiz/softethervpn:latest@sha256:62814df0dc7f323306990dc810557f138e21c73a2027220169d014c2baa13430
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/arm64
             
  Name:      docker.io/siomiz/softethervpn:latest@sha256:ba9ec8ecb87d33c9f0b591aae036e7001ea181002c8a5aedac35c7307474a1ed
  MediaType: application/vnd.docker.distribution.manifest.v2+json
  Platform:  linux/arm/v7

from softethervpn.

paskal avatar paskal commented on July 18, 2024

Fix as of now:

git clone [email protected]:siomiz/SoftEtherVPN.git
cd SoftEtherVPN
docker build -t siomiz/softethervpn:alpine -f Dockerfile.alpine .

siomiz, would you be so kind as to enable multi-arch builds for DockerHub so the arm64 image would be available to everyone?

from softethervpn.

siomiz avatar siomiz commented on July 18, 2024

Ok, I think I did the manifest thing right...
siomiz/softethervpn:latest and siomiz/softethervpn:alpine have linux/arm64/v8 now.
(I'm assuming there is no such thing as linux/arm/v8?)

from softethervpn.

paskal avatar paskal commented on July 18, 2024

It works alright, thank you!

image

from softethervpn.

paskal avatar paskal commented on July 18, 2024

image

Actually, judging by my other image built using docker buildx, I think there should be no /v8 part in, so your `latest` should have the same image as `latest-arm64` has currently, with the same arch.

from softethervpn.

siomiz avatar siomiz commented on July 18, 2024

Thank you for confirming!
I kinda cheated by building the arm64(/v8) image on an actual ARMv8 device, a Raspberry Pi 4B using 64-bit RasPi OS.
Built and pushed the :arm64-latest image, and created a new manifest for :latest + --amend and that somehow added the /v8 variant tag. Interesting spec...

from softethervpn.

paskal avatar paskal commented on July 18, 2024

You can build both architectures on amd64 Linux by issuing the following command: docker buildx build --pull --platform linux/arm64,linux/amd64 -t siomiz/softethervpn:latest --push ., and if it works as expected - include it into the CI pipeline. Here is documentation.

from softethervpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.