Using docker as a deployment mechanism, this code shows how to write a simple .Net Core 2.1 console app which blinks a light using GPIO file integrations and the WiringPi api
- Use docker to build and push a BlinkGpioFS image which will use the file system to interact with GPIO,
- Use docker to build and push a BlinkGpioWiringPi image which uses wiring pi to interact with the GPIO.
- Connect a LED to GPIO 17 (and use a resistor too)
- Install docker using
curl -sSL https://get.docker.com | sh
- Run the image using
sudo docker run -it -v /sys:/sys --privileged ${imageName}:${version}