You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reacted by Giacomo Consonni, ca-simone-chiorazzo, Alessio Zappa, ale, Giacomo Sortino, Aronne Brivio, Giacomo Porro, Filippo Rossi, Giacomo Marinangeli, gjshadow and 20 more
+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.
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.
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
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. 🙇
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!
Reacted by Christopher Petito, kezhenxu94 and Masas Dani
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
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.
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 👀 🙌
Activity
michaeljmarshall commentedon Nov 24, 2021
+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.
kezhenxu94 commentedon Dec 1, 2021
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.
codelipenghui commentedon Dec 2, 2021
Thanks @kezhenxu94, I have assigned the issue to you. Looking forward to your PRs.
krissetto commentedon Dec 7, 2021
I am also interested in support for ARM docker images, especially for testing locally on Apple Silicon based machines
kezhenxu94 commentedon Dec 7, 2021
Thank you @krissetto !! Will let you know when I have a docker image for testing on ARM!
lorthirk commentedon Dec 9, 2021
+1!
jibbolo commentedon Dec 9, 2021
+1
kezhenxu94 commentedon Dec 14, 2021
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: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 🙇
vkuznecovas commentedon Dec 15, 2021
I've tested it out, seems to work great. Thanks!
krissetto commentedon Dec 15, 2021
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
kezhenxu94 commentedon Dec 15, 2021
Sure, will keep you all in this thread posted. Thanks all for testing. 🙇
tdrozdowski commentedon Dec 29, 2021
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!
19 remaining items
eolivelli commentedon Feb 1, 2023
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.SortedLedgerStoragemerlimat commentedon Feb 1, 2023
Since Pulsar 2.11.0, there is no problem in running on ARM64 with default configs
zhongduo commentedon Feb 1, 2023
Any chance to support ARM64 docker in dockerhub?
merlimat commentedon Feb 2, 2023
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
jddCynet commentedon Apr 13, 2023
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 standaloneBut 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
onobc commentedon Apr 15, 2023
I see that warning too, but other than that it works like a charm for me.
tyler-boyd commentedon May 1, 2023
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 👀 🙌
merlimat commentedon May 1, 2023
Yes, this is going to be available in 3.0.0 which is being released this week.