Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide arm64 arch docker images #1386

Closed
tiagomeireles opened this issue Jan 20, 2023 · 4 comments
Closed

Provide arm64 arch docker images #1386

tiagomeireles opened this issue Jan 20, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request estimate/L Estimated effort/complexity/risk is large state/accepted All done!

Comments

@tiagomeireles
Copy link

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

I am unable to run pinniped on arm64 arch. Pinniped doesn't currently provide arm64 binaries and images.

The images provided at projects.registry.vmware.com/pinniped/pinniped-server are single arch/platform.

$ docker buildx imagetools inspect projects.registry.vmware.com/pinniped/pinniped-server:v0.22.0
Name:      projects.registry.vmware.com/pinniped/pinniped-server:v0.22.0
MediaType: application/vnd.docker.distribution.manifest.v2+json
Digest:    sha256:481b94f4468425542f111143ebb69cd2057b0003e7bee75047892638cf88e135

Describe the solution you'd like

  • Build and publish arm64 binaries.
  • Build and publish multi-arch container images that includes arm64.

Describe alternatives you've considered

Building pinniped from source for arm64.

Are you considering submitting a PR for this feature?

  • How will this project improvement be tested?
  • How does this change the current architecture?
  • How will this change be backwards compatible?
  • How will this feature be documented?

Additional context

Others are running on arm64. Approximately a year ago someone was getting pinniped to work on a rasphberry pi. ref

@cfryanr
Copy link
Member

cfryanr commented Jan 20, 2023

Thanks for opening an issue @tiagomeireles!

Can you share more about your use case? Curious which platform you are using, which Kubernetes distribution, and what you're trying to accomplish.

Although we haven't tried this ourselves, it should be fairly easy to make a copy of the Dockerfile, adjust it for arm64 compilation flags, docker build the Dockerfile, push the resulting container image to your favorite registry, and then use that container image when deploying Pinniped. Curious if that works for you. If your client machine is also arm64, you could compile the CLI with the appropriate arm64 flags too.

@pinniped-ci-bot pinniped-ci-bot added enhancement New feature or request priority/undecided Not yet prioritized labels Jan 23, 2023
@thebearingedge
Copy link

thebearingedge commented Sep 25, 2023

I use an Ubuntu Linux VM on Apple silicon and do local cluster work in Docker (KinD/Talos/K3D). It would be really nice to be able to use matching images and cli. Happy to work on that!

Edit: Oh, I see that Bitnami is publishing a multi-arch image.

@cfryanr
Copy link
Member

cfryanr commented Oct 2, 2023

Some thoughts on what we would need to change to support this for the server:

Some thoughts on what we would need to change to support this for the CLI:

Some thoughts on other things that we should do:

  • Make sure that you can build and run the integration tests locally on a Mac with Apple Silicon (arm64 CPU)

Notes:

  • Homebrew is not supported on arm64 linux machines at this time: https://docs.brew.sh/Homebrew-on-Linux#arm-unsupported. On Windows, "The Homebrew package manager may be used on Linux and Windows Subsystem for Linux (WSL) 2", which implies that it won't work on arm64 windows either. There is no other Windows support except for the WSL support (can't use brew on actual Windows OS).

@pinniped-ci-bot pinniped-ci-bot added priority/backlog Prioritized for an upcoming iteration estimate/L Estimated effort/complexity/risk is large and removed priority/undecided Not yet prioritized labels Oct 2, 2023
@pinniped-ci-bot pinniped-ci-bot added the state/started Someone is working on it currently label Oct 2, 2023
@cfryanr
Copy link
Member

cfryanr commented Oct 5, 2023

The next release will include amd64+arm64 multi-arch container images for the server, and will also include arm64 for the linux/darwin/windows CLI. All the necessary changes have already been made, so we just need to create a release. 🎉

@pinniped-ci-bot pinniped-ci-bot added state/finished Code finished but not yet delivered and removed state/started Someone is working on it currently labels Oct 5, 2023
@pinniped-ci-bot pinniped-ci-bot added state/delivered Ready for manual acceptance review and removed state/finished Code finished but not yet delivered labels Oct 9, 2023
@pinniped-ci-bot pinniped-ci-bot added state/accepted All done! and removed priority/backlog Prioritized for an upcoming iteration state/delivered Ready for manual acceptance review labels Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request estimate/L Estimated effort/complexity/risk is large state/accepted All done!
Projects
None yet
Development

No branches or pull requests

4 participants