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

Create an ASP .NET Core stack #265

Open
ocdtrekkie opened this issue Mar 2, 2020 · 8 comments
Open

Create an ASP .NET Core stack #265

ocdtrekkie opened this issue Mar 2, 2020 · 8 comments
Assignees

Comments

@ocdtrekkie
Copy link
Collaborator

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 ocdtrekkie self-assigned this Mar 2, 2020
@pgrm
Copy link
Contributor

pgrm commented Mar 3, 2020

@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

@ocdtrekkie
Copy link
Collaborator Author

Thanks @pgrm. it's nice to have something to reference for what's been tried before!

@ocdtrekkie
Copy link
Collaborator Author

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" ),

@ocdtrekkie
Copy link
Collaborator Author

New test repo is here: https://github.com/ocdtrekkie/vagrant-spk-dotnet-test1

@ocdtrekkie
Copy link
Collaborator Author

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

@ocdtrekkie
Copy link
Collaborator Author

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.

@ocdtrekkie
Copy link
Collaborator Author

Is it possible to use https://packages.debian.org/buster/musl to get this stack working within the vagrant-spk environment?

@zenhack
Copy link
Collaborator

zenhack commented Sep 8, 2020

Probably.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants