Base image with python 2.7 and gpiozero installed Ready to go tinkering NOTE the wiringPi library is not included. GPIO is only exposed through python scripts Remember to run with --privileged flag
links https://www.raspberrypi.org/blog/gpio-zero-a-friendly-python-api-for-physical-computing/ https://gpiozero.readthedocs.io/en/v1.3.1/
use case : base for new images or base to do some minor development testing
rebuild
added :
• tree
with pip :
• paho-mqtt
first draft
the following packages installed :
• ca-certificates
• curl
• gcc
• make
• nano
• python
• python-pip
• python-dev
• python-pip
• ssh
from pip :
• RPi.GPIO
• gpiozero
------------------------------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dockerfile
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------------------------
FROM resin/rpi-raspbian
MAINTAINER Quint Gijsbers <[email protected]>
RUN apt-get update && apt-get install \
ca-certificates curl gcc make nano \
python python-pip python-dev python-pip \
ssh tree
RUN pip install RPi.GPIO gpiozero paho-mqtt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
v2.2 (latest)
added empty folder : /etc/container
Content type
Image
Digest
Size
149.8 MB
Last updated
almost 9 years ago
docker pull quintg/gpiobase