Skip to content

Instantly share code, notes, and snippets.

@Govinda-Fichtner
Last active October 24, 2023 03:04
Show Gist options
  • Save Govinda-Fichtner/1d48543a6b9c2e21b7c1 to your computer and use it in GitHub Desktop.
Save Govinda-Fichtner/1d48543a6b9c2e21b7c1 to your computer and use it in GitHub Desktop.
WiringPi Dockerfile for the Raspberry Pi
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"]
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