Run docker run --rm andrewklau/raspbian-gpio --cap-add SYS_RAWIO --device /dev/mem --privileged to set the GPIO pins using the WiringPi utility.
Requires the ENV variable WORKER_LIMITS in CSV format. Eg. WORKER_LIMITS=export 1 low,export 0 low translates to:
gpio export 1 low
gpio export 0 low
FROM andrewklau/raspbian-core
RUN apt-get update && apt-get -y install sudo
RUN git clone git://git.drogon.net/wiringPi && \
cd wiringPi && \
./build
COPY container-entrypoint /usr/bin/
ENTRYPOINT ["container-entrypoint"]
Content type
Image
Digest
Size
140.9 MB
Last updated
almost 10 years ago
docker pull andrewklau/raspbian-gpio