devkitPro / docker

Dockerfiles for https://hub.docker.com/u/devkitpro/
GNU General Public License v3.0
58 stars 28 forks source link

[devkita64] nxlink server mode partially working under Docker container #21

Closed IAMSolaara closed 2 years ago

IAMSolaara commented 2 years ago

Hello. I'm using these docker images to compile and run my homebrew on my Switch but one feature doesn't seem to work, which is nxlink in server mode. It successfully sends the .nro to the switch but stuff like stdio redirection doesn't work, while it works as intended when running nxlink outside the container. Tried both with docker (both on native linux (RHEL 8.5 and Fedora 35) and on Windows through WSL2) and podman (also RHEL 8.5 and Fedora 35) with no difference in outcome/behavior. Commands used:

docker run --rm -it -v $PWD:/source devkitpro/devkita64 bash # for docker
podman run --rm -it -v $PWD:/source devkitpro/devkita64 bash # for podman

and then:

cd /source
make
nxlink -s -a <switch ip> <nro file>

I suspect this could be something to do with docker not exposing the port needed for communication switch -> pc but idk.

IAMSolaara commented 2 years ago

I'd like to note that when running on Linux SELinux was set to Permissive mode, not Enforcing

WinterMute commented 2 years ago

You just need to publish the port so it can be accessed externally.

docker run -p 28771:28771 --rm -it -v $PWD:/source devkitpro/devkita64 bash