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

yesimnathan

Well-Known Member
OP
Newcomer
Joined
May 11, 2018
Messages
66
Trophies
0
Age
37
XP
301
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,

yesimnathan

Well-Known Member
OP
Newcomer
Joined
May 11, 2018
Messages
66
Trophies
0
Age
37
XP
301
Country
United States
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 =)
 

AileenLumina

Python main, software engineer and API designer
Member
Joined
Sep 27, 2015
Messages
631
Trophies
0
Age
26
XP
614
Country
Germany
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

yesimnathan

Well-Known Member
OP
Newcomer
Joined
May 11, 2018
Messages
66
Trophies
0
Age
37
XP
301
Country
United States
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.
 

djricekcn

Well-Known Member
Member
Joined
May 29, 2009
Messages
1,100
Trophies
1
XP
838
Country
United States
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,

Deleted member 373223

Pink = Best colour
Member
Joined
Oct 8, 2015
Messages
4,099
Trophies
1
XP
2,790
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

lordelan

Well-Known Member
Member
Joined
Jan 4, 2015
Messages
5,785
Trophies
1
Age
44
XP
6,510
Country
Germany
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).
 

Deleted member 373223

Pink = Best colour
Member
Joined
Oct 8, 2015
Messages
4,099
Trophies
1
XP
2,790
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'.
 

MaxiBus

Well-Known Member
Member
Joined
Jan 12, 2018
Messages
219
Trophies
0
XP
1,240
Country
Austria
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 ;)
 

yesimnathan

Well-Known Member
OP
Newcomer
Joined
May 11, 2018
Messages
66
Trophies
0
Age
37
XP
301
Country
United States
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
 

MaxiBus

Well-Known Member
Member
Joined
Jan 12, 2018
Messages
219
Trophies
0
XP
1,240
Country
Austria
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,

Deleted member 373223

Pink = Best colour
Member
Joined
Oct 8, 2015
Messages
4,099
Trophies
1
XP
2,790
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.
 

Deleted member 373223

Pink = Best colour
Member
Joined
Oct 8, 2015
Messages
4,099
Trophies
1
XP
2,790
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

Recent Content

General chit-chat
Help Users
  • No one is chatting at the moment.
    Xdqwerty @ Xdqwerty: good night