Sign inSign up

andrewklau/raspbian-gpio

By andrewklau

•Updated almost 10 years ago

Image
0

497

andrewklau/raspbian-gpio repository overview

⁠Raspbian GPIO (WiringPi)

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

⁠Dockerfile

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

Tag summary

Content type

Image

Digest

Size

140.9 MB

Last updated

almost 10 years ago

docker pull andrewklau/raspbian-gpio