Last active
October 24, 2023 03:04
-
-
Save Govinda-Fichtner/1d48543a6b9c2e21b7c1 to your computer and use it in GitHub Desktop.
WiringPi Dockerfile for the Raspberry Pi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM resin/rpi-raspbian:jessie | |
MAINTAINER Govinda Fichtner <govinda@hypriot.com> | |
# Install dependencies | |
RUN apt-get update && apt-get install -y \ | |
git-core \ | |
build-essential \ | |
gcc \ | |
python \ | |
python-dev \ | |
python-pip \ | |
python-virtualenv \ | |
--no-install-recommends && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN pip install pyserial | |
RUN git clone git://git.drogon.net/wiringPi | |
RUN cd wiringPi && ./build | |
RUN pip install wiringpi2 | |
RUN git clone https://github.com/technion/lol_dht22 /lol_dht22_src | |
RUN cd lol_dht22_src && ./configure && make | |
RUN mv /lol_dht22_src/loldht /loldht && rm -Rf /lol_dht22_src | |
# Define working directory | |
WORKDIR /data | |
VOLUME /data | |
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM resin/rpi-raspbian:jessie | |
MAINTAINER Govinda Fichtner <govinda@hypriot.com> | |
# Install dependencies | |
RUN apt-get update && apt-get install -y \ | |
git-core \ | |
build-essential \ | |
gcc \ | |
python \ | |
python-dev \ | |
python-pip \ | |
python-virtualenv \ | |
--no-install-recommends && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN pip install pyserial | |
RUN git clone git://git.drogon.net/wiringPi | |
RUN cd wiringPi && ./build | |
RUN pip install wiringpi2 | |
# Define working directory | |
WORKDIR /data | |
VOLUME /data | |
CMD ["/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment