Posted on

Running a .NET Core 2 app on Raspbian Jessie, and deploying to the Pi with Cake | Jeremy Lindsay

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

Source: Running a .NET Core 2 app on Raspbian Jessie, and deploying to the Pi with Cake | Jeremy Lindsay

Posted on

Asp.Net-core Docker container not running on raspberry pi – Stack Overflow

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"]

Source: Asp.Net-core Docker container not running on raspberry pi – Stack Overflow

Posted on

Kubernetes on Raspberry Pi with .NET Core – Marcin Czachurski – Medium

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.

Source: Kubernetes on Raspberry Pi with .NET Core – Marcin Czachurski – Medium

Posted on

linux – Why does “docker attach” hang? – Stack Overflow

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.

Source: linux – Why does “docker attach” hang? – Stack Overflow

Posted on

Visual Studio Docker Tools how to force a container rebuild from scratch – Stack Overflow

To refresh the PostgreSQL database environment variables, you need to remove the database container and its volume. When Visual Studio next runs the docker-compose project, it will recreate the database container and its associated volume with a new ‘install’ of PostGres and updated environment variables. You will lose your data, so backup first!

Source: Visual Studio Docker Tools how to force a container rebuild from scratch – Stack Overflow