Giter VIP home page Giter VIP logo

docker-alpine-pigpiod's Introduction

docker-alpine-pigpiod

Docker Pulls Docker Image Size (latest by date) GitHub release (latest by date) Docker hub auto publish image

Docker image containing pigpiod. Can e.g. be used with node-red to access GPIOs on a Raspberry Pi by installing the package node-red-node-pi-gpiod.

Since this Docker image is based on the Linux distribution alpine, the image i very small (~6MB).

Usage(32bit system):

docker run -it -p 8888:8888 --device /dev/gpiochip0 zinen2/alpine-pigpiod

On 64bit system or if you hit access problems try running privileged:

docker run -it -p 8888:8888 --privileged zinen2/alpine-pigpiod

Note that this container must run on the Raspberry Pi itself. But the GPIOs is accessible for other devices on the network at port 8888.

What is pigpiod

pigpiod is a Linux daemon that launches pigpio. pigpio and pigpiod is from the same creator. pigpio is a library for the Raspberry Pi which allows control of the General Purpose Input Outputs (GPIO).

Which tag to use?

As default you should use no tag or latest. It should not be necessary to specify the architecture of the board. When pulling an image docker will automatic try to download the right image for you.

But in case docker fails at this the tags below can be used. I had to specify it to work with belenaCloud. E.g. for running on Raspberry Pi 1 this worked for me: docker run -it -p 8888:8888 --device /dev/gpiochip0 zinen2/alpine-pigpiod:arm32v6

Device Name Docker image tag Tested?* ✔/❌ pigpio version tested
Raspberry Pi (1, Zero, Zero W) zinen2/alpine-pigpiod:arm32v6 ✔ yes, works on rpi1 76
Raspberry Pi 2 zinen2/alpine-pigpiod:arm32v7 ☐ no NA
Raspberry Pi 3 (32bit) zinen2/alpine-pigpiod:arm32v7 ✔ yes, works 76, 78
Raspberry Pi 3 (64bit) zinen2/alpine-pigpiod:arm64v8 ✔ yes, works 78
Raspberry Pi 4 zinen2/alpine-pigpiod:arm64v8 ✔ yes, works 78

Some problems can also be fixed by running the container privileged. In that case you can try this docker run -it -p 8888:8888 --privileged zinen2/alpine-pigpiod

*If you test it on your hardware, please respond back if it worked. By issue or pull request to update the list above.

Specific version

It is possible to pull a specific version via. eg. docker pull zinen2/alpine-pigpiod:pigpio-v78 for pulling version 78. See list of tags available on docker hub.

Updates of images

The images are automatic updated when a new release of pigpio is posted at github releases.

Credits

start.sh is mostly a copy from another project and the creator’s repo is found here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.