New WebAssembly technology
Source: Blazor preview documentation
ASP.NET Core 2.1 allows to create Razor UI as Class Library and that can then be packaged into a NuGet package and shared.
I wanted to create a web api app that answered calls on my Raspberry Pi. The first step I learned was how to install and configure .NET core 2.0 on the Raspberry Pi.
Windows Machine to IOT implementation
dotnet new -i RaspberryPi.Template::*
dotnet new coreiot -n HelloRaspbian
Invoke-WebRequest http://cakebuild.net/download/bootstrapper/windows -OutFile build.ps1
FROM microsoft/aspnetcore-build:2.0 AS build-env WORKDIR /app # copy csproj and restore as distinct layers COPY /src ./ RUN dotnet restore # copy everything else and build COPY . ./ RUN dotnet publish -c Release -o out -r linux-arm # build runtime image FROM microsoft/dotnet:2.0.0-runtime-stretch-arm32v7 WORKDIR /app COPY --from=build-env /app/src/RadiusNet.Web/out . ENTRYPOINT ["dotnet", "yourapp.dll"]
Kubernetes on Raspberry Pi with .NET CoreFew weeks ago I read an article written by Scott Hanselman about Kubernetes on Raspberry Pi. I thought that it would be great to build similar infrastructure on own. Thanks to Unit4, where I’m working, it was possible. I ordered all required parts and my company covered all costs.
docker exec -it bash (you can find the container-id from running docker ps -a). This will pull you into the instance with a functional bash as root (assuming there was no other explicit set up done by the image you pulled). I know the accepted answer has captured this as well, but decided to post another one that is a little more terse and obvious, as the solution didn’t pop out for me when I was reading it.