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

Extend base img with other base architecture #188

Open
MauroBono opened this issue Oct 26, 2023 · 4 comments
Open

Extend base img with other base architecture #188

MauroBono opened this issue Oct 26, 2023 · 4 comments
Assignees
Labels
new-architectures Attemps ont M1, AMR64, ..

Comments

@MauroBono
Copy link

The base architecture is the linux/386 architecture. However if you want to execute the application on a Mac Pro, then we need to support provide a base img built on a linux/arm64/v8 machine (or at least support the architecture).

Should be done easily, let me know, if I can help

@pauleve
Copy link
Owner

pauleve commented Oct 26, 2023

Indeed - to my understanding the main challenge is that wine will not work on architectures other than amd64/i386 as it requires having i386 binaries for now. This is currently being addressed with the WoW64 effort. In #176 I've prepared a Docker image which uses it, but it doesn't work with MTGO so far. Yet, it will probably work in a near future with next wine releases.
Once this is fixed, it will allow installing wine on different architectures and run MTGO natively on them.

Alternatively, it may be possible to run i386 Docker images on M1/others using emulation. There have been some discussions about it in #116 , but with no success so far to my knowledge.
If you manage to run MTGO on M1, that would be awesome!

@pauleve pauleve added the new-architectures Attemps ont M1, AMR64, .. label Oct 26, 2023
@pauleve
Copy link
Owner

pauleve commented Dec 15, 2023

With the latest wine 9.0-rc1, we can start hoping for native arm64 wine for executing mtgo.
You can give a try using the following commands to build a native arm64 image:

git clone  -b wow64-multi https://github.com/pauleve/docker-mtgo.git docker-mtgo64
cd docker-mtgo64
git submodule update --init
make -C docker-wine
make

If successful, you can then try in the docker-mtgo64 folder:

./run-mtgo panard/mtgo:wow64

Alternatively, to try emulating amd64 imaged, the following setup might work:

docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

Then try ./run-mtgo --update panard/mtgo:latest

@whaler-ragweed
Copy link

Error when building (M1 Mac, 4GB memory for Docker), tried several times. Any suggestions?

Screenshot 2023-12-15 at 8 13 52 PM

@pauleve
Copy link
Owner

pauleve commented Dec 15, 2023

Thanks for the debug! I'll try to cross-build the arm image here to test.
It looks like either the build of wine misses some configurations for arm, or that arm is not really supported yet (although https://wiki.winehq.org/ARM64 seems positive)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-architectures Attemps ont M1, AMR64, ..
Projects
None yet
Development

No branches or pull requests

3 participants