V
V
Victor P.2018-05-31 17:11:31
ASP.NET
Victor P., 2018-05-31 17:11:31

How can a teapot host a .net core on a Raspberry Pi3?

Good day!
I'm doing web development on the Microsoft stack. I like Windows, I like visual studio, I like to write in c#, I figured out IIS. If something is needed, then through the remote desktop I go to the server, there is almost the same Windows, I poke the mouse on the buttons and do what is necessary. There are no problems with this at work, there are all sorts of paid licenses, but when I do projects for myself, then renting a hosting with Windows faces is much more expensive than Linux servers. Plus, stories periodically slip through, as the company wrote on the .net stack, and from above an order comes to migrate to open source and some kind of hell begins (although this is a bell that you need to dump from such a company).
The problem is that I absolutely do not stick in Linux.
.net core appeared, it seems like it can be run on nix servers. I tried to see (for the purpose of self-education) how to do it - a few sheets of some hieroglyphs (commands I don't understand) to set up the server. Then raising some proxying web servers. The application is hosted on one server, nginx is raised, all this is connected by some kind of magic. Then you almost manually rip out the dll from your project, you need to compile them somehow in a special way, or manually compile them, or who the hell knows what is needed there, manually drag them, do not forget to sprinkle with holy water and cross, and voila, everything works (or No). On a Windows server, if possible, I get in once, set up WebPublish in a few clicks, take the profile and publish the project with one button in a few seconds. If this is not possible, then there is ftp, Everything is done longer, but it is also published with one button from the studio. After such convenience, I can’t even start tinkering with Linux.
I recently got a Raspberry Pi 3 that just says, "It's just a little Linux computer. If you want to try your hand at learning Linux but are afraid to put it on your home machine, then raspberry is exactly what you need. Even if you mess up completely, just reinstall a clean image on a flash drive and move on. No problem, no responsibility."
And I again came to the problem voiced at the beginning. The problem is that I'm dumb. I can take a flash drive. Upload an image of any Linux there, for example, Ubuntu 16.04, and then what? I don't even know how to get in there and start installing something. Suppose. Just imagine I pick up all this shamanism and make it work. To run my application there, I will need to somehow miraculously edit the binaries almost manually, compile it correctly, manually drag files and manually run it. And this will need to be done every time with every update. And the icing on the cake will again be to set up something in the world unknown to me in order to attach a static IP from the provider in order to launch the site on the Internet. This prospect makes my stomach hurt.
And somewhere in the depths of my soul I understand that this should not be so. There must be some slick and elegant solutions, but I don't even know what questions to ask the almighty google. I have no friends or acquaintances who are at least partially in contact with these technologies, and I don’t know where you can find people who are passionate about this particular topic or resources on it (preferably Russian-speaking, the banana is clear). I heard that there is such a Docker technology - it's kind of like a one-time server setup, and since I have heterogeneous environments (development / debugging in Windows and hosting on Linux), it's really necessary to use it. I have not come across him before, because there was no need.
Question: is it possible to run these containers on Windows during development? Or how do you deal with such a situation?
As I understand it, someone from the outside can help me with all these settings, I'm not particularly interested in it, I like to develop, write websites, but that's not all. But I do not know where to look for a person who can? I can put down, or pay some money, but I don’t know what such a specialist should have in skills to look for, for example, freelancing.
So, the task is to launch a website on the home Raspberry Pi to the Internet.
Conditions: Development on .net core in Windows in visual studio. Publication, if possible, with one button. Raspberry Hosting.
Questions:
1. Instructions for dummies on what and how to put on raspberries in such a situation.
2. Instructions for dummies on how to smuggle white IPs and make the site available on the Internet.
3. How to set up a workflow for publishing and debugging such an environment - development on Windows, publishing in ARM32 (if I'm not mistaken), there are also some instructions or resources who are involved in this.
Help, please, Vitichka needs your help. Don't be indifferent.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman, 2018-05-31
@Jeer

dotnet publish -o [path] -c release -r linux-x64 command to compile and publish the application under Linux. How to raise apache, nginx as a proxy, there is a lot of information. How to start a service under Linux, too.

R
Roman Mirilaczvili, 2018-06-06
@2ord

If you need to publish your application on the "Internet", then it's easier to use PaaS Heroku.
Then no "raspberries" are needed.
Deploy asp.net core 2.0 apps on Heroku

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question