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

Apple Silicon Arm builds #359

Open
tomjn opened this issue Mar 15, 2021 · 12 comments
Open

Apple Silicon Arm builds #359

tomjn opened this issue Mar 15, 2021 · 12 comments

Comments

@tomjn
Copy link

tomjn commented Mar 15, 2021

Currently linux_arm builds are available, but Apple Silicon aarch64 builds are not.

@evertiro
Copy link

To elaborate on the above, we use MailHog and mhsendmail in VVV. We actually don't use an arm64 build currently, but may well in the future. We currently use an aarch64 build (which is also not provided). I'm currently providing downloads for both MailHog and mhsendmail on both arm64 and aarch64 oh my forks.

https://github.com/evertiro/mhsendmail/releases/tag/v0.2.0-M1

https://github.com/evertiro/MailHog/releases/tag/v1.0.0-M1

@abbluiz
Copy link

abbluiz commented Aug 12, 2021

@evertiro what about docker though?

@tomjn
Copy link
Author

tomjn commented Aug 12, 2021

@abbluiz are you suggesting we use docker + QEMU x86 emulation? What about Raspberry Pis, arm servers, or native Apple Silicon?

@tomjn tomjn changed the title arm64 builds Apple Silicon Arm builds Aug 12, 2021
@abbluiz
Copy link

abbluiz commented Aug 13, 2021

@tomjn no, I was just asking really... because there's no arm docker images for mailhog and that would be good for apple m1 & other arm-based docker hosts

@ojtibi
Copy link

ojtibi commented Dec 28, 2021

@abbluiz Exactly. I came here from Docker Hub, and I found this is the only ticket related to AArch64/Apple Silicon. Will be subscribing to notifications on this dicussion.

@websafe
Copy link

websafe commented Mar 31, 2022

Would be great to have an official arm64 build for M1 based machines.
👍

@jcalonso
Copy link

jcalonso commented Apr 23, 2022

For those looking for an arm64/aarch64 Docker image, I built one here:
https://hub.docker.com/r/jcalonso/mailhog

There is also an arm64 binary here:
https://github.com/jcalonso/MailHog/releases/tag/v1.0.1-arm

The arm build was tested on AWS Graviton t4g and Raspberry pi, I don't have a mac to test there but it should work™.

It would be great to have this on the official repo, let me know if the releases work fine and I can open an PR.

Edit: Fixed Docker Hub link

@mikescott
Copy link

@jcalonso your binary works perfectly inside a Debian 11 arm64 VM on an Apple Silicon Mac

@Enchiridion
Copy link

@jcalonso Thanks for making that version! Working on Ubuntu 22 on M1 Mac. Any chance you could also make an arm64 version of tkotosz/mhsendmail and tkotosz/mhsendmail-wrapper?

@mikescott
Copy link

I discovered it's a piece of cake to compile these:

  1. Install golang-go
  2. Clone MailHog or mhsendmail
  3. cd to the directory and run make and run the command it suggests to fix the errors, and run make again
  4. The binaries should be in ~/go/bin

@atezet
Copy link

atezet commented Oct 27, 2022

I LITERALLY just forked the image and ran

docker buildx build --push --platform linux/arm64,linux/amd64 -t arjenz/mailhog:latest .

to build and push it to Docker Hub. You're free to use it: https://hub.docker.com/r/arjenz/mailhog

If you want to try out a new project, created by a colleague of mine (in Rust), here's MailCrab: https://github.com/tweedegolf/mailcrab ! Also available on Docker Hub: https://hub.docker.com/r/marlonb/mailcrab

@extralooping
Copy link

I discovered it's a piece of cake to compile these:

1. Install `golang-go`

2. Clone MailHog or mhsendmail

3. `cd` to the directory and run `make` and run the command it suggests to fix the errors, and run `make` again

4. The binaries should be in `~/go/bin`

For me (debian 11 inside parallelsvm on m3 mac), it was even easier with go get github.com/mailhog/MailHog, the result was in ~/go/bin

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

No branches or pull requests

10 participants