-
Notifications
You must be signed in to change notification settings - Fork 60
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
arm64 builds #28
Comments
To elaborate on the above, we use https://github.com/evertiro/mhsendmail/releases/tag/v0.2.0-M1 https://github.com/evertiro/MailHog/releases/tag/v1.0.0-M1 |
Hi @evertiro, could you please provide instructions on how to rebuild this repo to provide for multi-arch binaries? I'd like to test out a lot of architectures, as from what I see in your links, you have just for ARM64. Thanks in advance! |
These might do the trick for you: |
I am also using an Apple Silicon Mac, and it works by fixing my Dockerfile as follows: +FROM golang:1.15 AS builder
+RUN go get -d -v github.com/mailhog/mhsendmail \
+ && cd /go/src/github.com/mailhog/mhsendmail/ \
+ && GOOS=linux GOARCH=arm64 go build -o mhsendmail .
+
FROM wordpress:php7.4-apache
# Install mhsendmail
-RUN curl -sS https://github.com/mailhog/mhsendmail/releases/download/v0.2.0/mhsendmail_linux_amd64 -L -o /usr/local/bin/mhsendmail \
- && chmod +x /usr/local/bin/mhsendmail \
+COPY --from=builder /go/src/github.com/mailhog/mhsendmail/mhsendmail /usr/local/bin/
+RUN chmod +x /usr/local/bin/mhsendmail \
&& echo 'sendmail_path = "/usr/local/bin/mhsendmail --smtp-addr=mail:1025"' > /usr/local/etc/php/conf.d/sendmail.ini Thanks @FrancoLoyola |
Is there any news regarding this? Do you recommend any other solution? Thanks |
Re-compile in Go takes at most a couple of seconds, it could be nice that a release is added to the repo, but the solution provided by @uedder should work, you could update the line Else try with @evertiro 's releases, I don't have a M1 based mac anymore, but they might work in your system. EDIT: You can build it locally without |
We use a builder ourselves as the releases do not have an arm64 binary. See: mailhog/mhsendmail#28 (comment)
Thanks @FrancoLoyola and @na0x2c6 👍 I've added binary releases (
|
The current release has a
linux_arm
build but this does not work on Apple Silicon Macs. Anarm64
build is necessaryThe text was updated successfully, but these errors were encountered: