Homebrew RELEASE switchdev - Docker image to easily compile homebrew applications for the Nintendo Switch

  • Thread starter Thread starter yesimnathan
  • Start date Start date
  • Views Views 20,783
  • Replies Replies 29
  • Likes Likes 26

yesimnathan

Well-Known Member
Newcomer
Joined
May 11, 2018
Messages
66
Reaction score
54
Trophies
0
Age
40
XP
331
Country
United States
This is just a super simple Docker image that will allow you to easily compile a Nintendo Switch homebrew application without having to install a bunch of stuff & configure your local workstation for Switch homebrew.

Assuming you have Docker setup on your workstation and a Makefile for your project, you can just run this command from within your homebrew project's root directory:
Code:
docker run --rm -v $PWD:/developer yesimnathan/switchdev

I'm just getting into Switch homebrew but I've compiled some basic apps as well as Atmosphere with this and it seems to work great, so I figured I'd share it for others to use!

Image on Docker Hub: https://hub.docker.com/r/yesimnathan/switchdev/
Source: https://github.com/nchowning/dockerfiles/tree/master/switchdev
 
Last edited by yesimnathan,
Thanks! If you can think of any improvements, let me know or submit a PR! I'd love to make this as useful as possible =)
 
I have shown your docker image to the devs of devkitA64 and libnx. Let me forward their response:

<fincs>
https://hub.docker.com/r/devkitpro/devkita64/
<fincs> The Official™ Docker image for devkitA64 + libnx + switch portlibs
<Aileen> That sounds like the switchdev docker image is redundant, lol
<fincs> Totally
<fincs> In fact I dare say the one you linked to should be *removed*
 
Last edited by AileenLumina,
  • Like
Reactions: yesimnathan
I have shown your docker image to the devs of devkitA64 and libnx. Let me forward their response:

<fincs>
https://hub.docker.com/r/devkitpro/devkita64/
<fincs> The Official™ Docker image for devkitA64 + libnx + switch portlibs
<Aileen> That sounds like the switchdev docker image is redundant, lol
<fincs> Totally
<fincs> In fact I dare say the one you linked to should be *removed*

I had no idea that official devkitpro docker images existed! Thanks for the info! Those are close to what I wanted so I have updated my image to use the devkitpro/devkita64 as a base.
 
what does this do? a charging dock that sends payload when it's docked or something?

**edit
did go to the links, but don't understand squat so won't be touching it but still curious on what this is.
 
Last edited by djricekcn,
what does this do? a charging dock that sends payload when it's docked or something?

**edit
did go to the links, but don't understand squat so won't be touching it but still curious on what this is.
It's to make homebrew from the source code, but instead of installing a hundred different things and hoping you installed the right kind of the one hundred different things, you just install docker and the docker image.

--------------------- MERGED ---------------------------

Any docker for windows 10 home exists?
 
  • Like
Reactions: yesimnathan
what does this do? a charging dock that sends payload when it's docked or something?

**edit
did go to the links, but don't understand squat so won't be touching it but still curious on what this is.
Look what "Docker" is. You can think of it like some kind of VM that you control by terminal commands (although that's not anywhere near the truth lol).
 
Hey, it gives me an error.
Code:
docker: Error response from daemon: create $PWD: "$PWD" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
See 'docker run --help'.
 
Hey, it gives me an error.
Code:
docker: Error response from daemon: create $PWD: "$PWD" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
See 'docker run --help'.
Check the value of $PWD for illegal characters ;)
 
Hey, it gives me an error.
Code:
docker: Error response from daemon: create $PWD: "$PWD" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path.
See 'docker run --help'.

Hmmm I've not used docker on Windows but it's possible that the $PWD environment variable doesn't exist. Try changing '$PWD' to the full/absolute path to your project directory
 
Its a simple Path issue, nothing major. Whats the output of $PWD? Did you take care for / and \?

Plus: does makefile really exist where you expect it?
 
Last edited by MaxiBus,
Its a simple Path issue, nothing major. Whats the output of $PWD? Did you take care for / and \?

Plus: does makefile really exist where you expect it?
I already said the output of $PWD. The thing is, $PWD isn't a thing in windows. So i specidified the directory instead, and that says that there is no make file. But there IS a makefile. in the root of the atmosphere source, cloned recoursively on the desktop using git, with fusee that has an appended #define I_KNOW_WHAT_I_AM_DOING in main.c! So that's why i am installing manjaro.
 
On Manjaro: docker: Error response from daemon: error creating aufs mount to /var/lib/docker/aufs/mnt/9aaa832df8bae150693cda2333b72848087660d4642279d639edacb1e36b7bf9-init: invalid argument.
 

Site & Scene News

Popular threads in this forum