Sign inSign up

anthonyharrison/pi-dotnet

By anthonyharrison

Updated about 7 years ago

Dotnet running on ubuntu:bionic running on Raspberry Pi B (i.e. arm32v7)

Image
0

193

anthonyharrison/pi-dotnet repository overview

This image is designed to run dotnet 2.2 on Raspberry Pi 3B

This image was created from a container that was based upon the anthonyharrison/piimage (see that for how it was created as an arm32v7 image).

That container was probably created using the command ```docker run -it --name temporarycontainer anthonyharrison/pi:0.1

That caused the container to start in interactive mode and manually configured the container so that dotnet would run on it.

To do so, the developer ran the following commands from the logged in root prompt:

wget https://dot.net/v1/dotnet-install.sh
apt-get install sudo
chmod 777 dotnet-install.sh
./dotnet-install.sh -c Current
cd /root/.dotnet
chmod +x dotnet
export PATH="$PATH:/root/.dotnet"
apt-get install libunwind8 icu-devtools

This container was then committed as a new image and tagged as anthonyharrison/pi-dotnet:0.2

Looking at the above commands you can see that the primary installation of dotnet was done by the dotnet-install.sh script and the last line, apt-get install libunwind8 icu-devtools was necessary to prevent an error throwing when dotnet new was run.

A console app was created using dotnet new consoleand this was tested using both dotnet run and dotnet build.

N.B. The $PATH does not yet include the dotnet directory /root/.dotnet so you either have to go export PATH="$PATH:/root/.dotnet" on the command line or put the path in to your dotnet command, eg. /root/.dotnet/dotnet new console (for example).

You will see in the Dockerfile for anthonyharrison/pi-dotnet-console-helloworld that this image was used as a base for that example.

Tag summary

Content type

Image

Digest

Size

319.8 MB

Last updated

about 7 years ago

docker pull anthonyharrison/pi-dotnet:0.2