Create an ASP .NET Core stack
ocdtrekkie opened this issue · 8 comments
A friend of mine is interested in potentially packaging a .NET Core app for Sandstorm. I know @pgrm tried to do this before and ran into some issues like sandstorm-io/sandstorm#1582 (also dotnet/runtime#2534) and #144
Unfortunately, a referenced test repo doesn't exist anymore, so I may need to start from scratch with https://dotnet.microsoft.com/learn/aspnet/hello-world-tutorial/install which does helpfully have install instructions for Debian 9.
@ocdtrekkie I managed to dig up some old backup of the dotnetcore stack that I tried working on. But this is still from the DNX times, so not sure how useful it will be to you, but good luck 🤞
dotnetcore.zip - put these files into stacks/dotnetcore
Thanks @pgrm. it's nice to have something to reference for what's been tried before!
I have gotten as far as @pgrm's old dotnet/runtime#2534 issue now.
I had issues creating the symlink inside my .sandstorm folder, probably because I'm playing on a Windows host machine. But I had my setup.sh do this:
sudo mkdir /fake
sudo ln -s /usr/bin/dotnet /fake/proc-self-exe
And this in pkgdef:
( packagePath = "proc/self/exe",
sourcePath = "/fake/proc-self-exe" ),
New test repo is here: https://github.com/ocdtrekkie/vagrant-spk-dotnet-test1
As noted in dotnet/runtime#2534 (comment)
I need to figure out how to fake:
/proc/self/maps
/proc/mounts
/proc/{PID}/stat
And then /dev/shm can be fixed by sandstorm-io/sandstorm#3263
As an update, @zenhack has this working here: https://github.com/zenhack/dotnet-docker-spk using docker-spk and Alpine Linux instead of vagrant-spk.
From the looks of it, it'd be very very non-trivial to get Alpine Linux working with vagrant-spk.
Is it possible to use https://packages.debian.org/buster/musl to get this stack working within the vagrant-spk environment?
Probably.