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

Janus does not work on M1 Macs #948

Closed
simon-friedberger opened this issue Jan 30, 2023 · 3 comments
Closed

Janus does not work on M1 Macs #948

simon-friedberger opened this issue Jan 30, 2023 · 3 comments

Comments

@simon-friedberger
Copy link

ARM is currently not support by Janus so M1 Macs cannot be used for development.
I was looking for a way to get around that.

I have set up podman with qemu in such a way that images for other architectures can be run.

Specifically, I have done

podman machine init --cpus=4 --memory=8192 -v $HOME:$HOME
podman machine ssh
sudo rpm-ostree install qemu-user-static
sudo systemctl reboot

testing that it works with e.g.

podman run --rm -it docker.io/amd64/alpine 

At this point the janus build still fails. So I made a few changes to replace calls to docker with calls to podman and specifying --arch=aarm64 (docker doesn't have that argument). That makes the build work.

cargo test is still failing when trying to create the ephemeral DB. I probably won't pursue this further but maybe this is useful information to somebody. At least it's possible (if a bit slow) to build.

@divergentdave
Copy link
Collaborator

I looked into using podman a while back for other reasons, and there were a few incompatibilities between testcontaners-rs and it. The last one I identified was containers/podman#13803. If you're not using a bleeding edge of podman, that's probably the issue.

@tgeoghegan
Copy link
Contributor

I don't think we should commit to supporting any target unless we can run our CI on it. I think we can just add latest macOS to our test matrix, but AFAICT Apple Silicon VMs are not yet available in GitHub Actions (actions/runner-images#2187, github/roadmap#528). The prior art I'm aware of for GHA on Apple Silicon involves running your own fleet of runners, which is not something I think we should commit to doing.

@inahga
Copy link
Contributor

inahga commented Sep 17, 2024

I've had success on my M3 Macbook with developing Janus both locally and containerized. @simon-friedberger, let me know if you're still having problems.

Note that I use Colima as my container VM, but this is largely a matter of taste.

@inahga inahga closed this as completed Sep 17, 2024
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

4 participants