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

fix: Support arm Macs by creating dockerfile for elasticsearch 7.10.2 #263

Closed

Conversation

miles-grant-ibigroup
Copy link

I was setting up Pelias today on an arm Mac and ran into some problems with the Elasticsearch image. Some research told me that version 7.10.2 plays nicely with Docker on arm, and I confirmed that to be true. I'm not sure what your process is for updating Elasticsearch, but I created an image based on the Dockerfile in this PR and I have Pelias up and running on my arm Mac!


Here's the reason for this change 🚀

Pelias wasn't running properly on an arm Mac.

More specifically, was getting the error Error: could not find libjava.so from within the container after running pelias elastic start.


Here's what actually got changed 👏

Created a new Elasticsearch image.


Here's how others can test the changes 👀

Try to create a new Pelias instance on both Intel and arm computers, and check that everything still works!

@orangejulius
Copy link
Member

Hi @miles-grant-ibigroup,
Thanks for this! I have an M1 Apple myself, and definitely noticed Elasticsearch does not work in Docker as we currently have it set up.

To be honest, we are rather conservative when it comes to upgrading Elasticsearch in general. The upgrades (even between minor versions) often lead to things like performance or quality changes, and it's hard to make sure we won't break something for someone with a unique setup. But we do want to support as many platforms as possible, and falling behind on versions has its own issues.

I also haven't really used Docker much on the new Mac, since it seems to have poor performance, not a lot of images support ARM natively yet, and it kills the incredible battery life (the whole reason I got the laptop in the first place!). Anyway I'll try to test this soon :)

@miles-grant-ibigroup
Copy link
Author

Hey,

Thanks so much for taking a look! Battery life running Docker is definitely not what it was without Docker, but I was still able to set up Pelias on the Portland Metro area from scratch with interpolation and only used about 50% of battery!

I'm just happy the fix is known and thanks again for maintaining Pelias! Really impressive project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants