Skip to content

ARM based docker image #12944

Closed
Closed

Description

@vkuznecovas

Is your enhancement request related to a problem? Please describe.
I'd like to see an ARM based docker image for pulsar. The problem is that under new macs the pulsar containers have to be run under emulation which makes them horribly slow.

Describe the solution you'd like
ARM based docker image should be available in the apachepulsar/pulsar repo.

Describe alternatives you've considered
Building a native image has not proved trivial, so ideally someone with more knowledge of the project would be able to create one.

Activity

  1. added
    type/enhancement
    on Nov 23, 2021
  2. michaeljmarshall commented on Nov 24, 2021

    @michaeljmarshall
    Member

    +1. This would be a good feature for end users. My only concern as a contributor is that it will increase build times. That shouldn't stop this feature, though.

    Ideally, we'll be able to follow the instructions here: https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/. I haven't done a mutli-arch build using maven before (we build our docker images using maven), so that is one nuance.

  3. kezhenxu94 commented on Dec 1, 2021

    @kezhenxu94
    Member

    I'm glad to work on this if there is nobody already working on it? I've recently created a build job to build amd64/arm64 Docker images for Apache SkyWalking and can apply the experience here, perhaps.

  4. codelipenghui commented on Dec 2, 2021

    @codelipenghui
    Contributor

    Thanks @kezhenxu94, I have assigned the issue to you. Looking forward to your PRs.

  5. krissetto commented on Dec 7, 2021

    @krissetto

    I am also interested in support for ARM docker images, especially for testing locally on Apple Silicon based machines

  6. kezhenxu94 commented on Dec 7, 2021

    @kezhenxu94
    Member

    I am also interested in support for ARM docker images, especially for testing locally on Apple Silicon based machines

    Thank you @krissetto !! Will let you know when I have a docker image for testing on ARM!

  7. lorthirk commented on Dec 9, 2021

    @lorthirk

    +1!

  8. jibbolo commented on Dec 9, 2021

    @jibbolo

    +1

  9. kezhenxu94 commented on Dec 14, 2021

    @kezhenxu94
    Member

    Hi all in this thread, I just pushed a multi-arch image to my own repo, anyone interested is welcome to pull and test it in your environment. https://hub.docker.com/repository/docker/kezhenxu94/pulsar/tags?page=1&ordering=last_updated

    To test, just replace the docker image with kezhenxu94/pulsar, example:

    docker run -it \                                                                                                                  
      -p 6650:6650 \
      -p 8080:8080 \
      --mount source=pulsardata,target=/pulsar/data \
      --mount source=pulsarconf,target=/pulsar/conf \
      kezhenxu94/pulsar \
      bin/pulsar standalone
    

    Note this is not official and not well tested now, I'll test, polish and then open a PR so everyone can review on the build process.

    Any feedback are also welcome and appreciated 🙇

  10. vkuznecovas commented on Dec 15, 2021

    @vkuznecovas
    Author

    Hi all in this thread, I just pushed a multi-arch image to my own repo, anyone interested is welcome to pull and test it in your environment. https://hub.docker.com/repository/docker/kezhenxu94/pulsar/tags?page=1&ordering=last_updated

    To test, just replace the docker image with kezhenxu94/pulsar, example:

    docker run -it \                                                                                                                  
      -p 6650:6650 \
      -p 8080:8080 \
      --mount source=pulsardata,target=/pulsar/data \
      --mount source=pulsarconf,target=/pulsar/conf \
      kezhenxu94/pulsar \
      bin/pulsar standalone
    

    Note this is not official and not well tested now, I'll test, polish and then open a PR so everyone can review on the build process.

    Any feedback are also welcome and appreciated 🙇

    I've tested it out, seems to work great. Thanks!

  11. krissetto commented on Dec 15, 2021

    @krissetto

    I have also started testing it on an M1 device, and it seems to work 😄 I haven't gone very deep into it yet though, so i'll be back with feedback if I encounter any specific issues with it. Thanks for the build! Ping when you have a PR too since i'm curious

  12. kezhenxu94 commented on Dec 15, 2021

    @kezhenxu94
    Member

    I have also started testing it on an M1 device, and it seems to work 😄 I haven't gone very deep into it yet though, so i'll be back with feedback if I encounter any specific issues with it. Thanks for the build! Ping when you have a PR too since i'm curious

    Sure, will keep you all in this thread posted. Thanks all for testing. 🙇

  13. tdrozdowski commented on Dec 29, 2021

    @tdrozdowski

    I can also validate that this appears to work on M1 Pro Max based machine. Would love to see the PR so we can get an official image; this works for local development in the meantime (and eliminates yet another tie to an Intel based machine!). Thanks so much!

  14. 19 remaining items

  15. eolivelli commented on Feb 1, 2023

    @eolivelli
    Contributor

    if you want to run pulsar standalone without docker you can simply add this to conf/standalone.conf, this will disable RocksDB

    ledgerStorageClass=org.apache.bookkeeper.bookie.SortedLedgerStorage

  16. merlimat commented on Feb 1, 2023

    @merlimat
    Contributor

    Since Pulsar 2.11.0, there is no problem in running on ARM64 with default configs

  17. zhongduo commented on Feb 1, 2023

    @zhongduo

    Any chance to support ARM64 docker in dockerhub?

  18. merlimat commented on Feb 2, 2023

    @merlimat
    Contributor

    As of now, you can build ARM64 image, though we don't yet have multi-arch image. It needs some work on the maven-docker plugin to do so

  19. added this to the 3.0.0 milestone on Feb 5, 2023
  20. modified the milestones: 3.0.0, 3.1.0 on Apr 11, 2023
  21. jddCynet commented on Apr 13, 2023

    @jddCynet

    How can we run it as a docker standalone ?
    I tried this cmd
    docker run -it -p 6650:6650 -p 8080:8080 --mount source=pulsardata,target=/pulsar/data --mount source=pulsarconf,target=/pulsar/conf apachepulsar/pulsar:2.11.0 bin/pulsar standalone

    But I have this error: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

  22. onobc commented on Apr 15, 2023

    @onobc
    Contributor

    But I have this error: WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

    I see that warning too, but other than that it works like a charm for me.

  23. tyler-boyd commented on May 1, 2023

    @tyler-boyd

    I see this issue was closed (as a PR was merged), when should we expect an ARM image to be available on Dockerhub? We've found that running the amd64 image through qemu is too slow to be useful for our use cases, so are very much looking forward to an ARM image 👀 🙌

  24. modified the milestones: 3.1.0, 3.0.0 on May 1, 2023
  25. merlimat commented on May 1, 2023

    @merlimat
    Contributor

    Yes, this is going to be available in 3.0.0 which is being released this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type/enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions