Closed DewitteRuben closed 2 years ago
# https://pythonhosted.org/sense-hat/
# https://ubuntu.com/blog/common-sense-using-the-raspberry-pi-sense-hat-on-ubuntu-impish-indri
# https://hub.docker.com/r/protik77/python3-sensehat/dockerfile
FROM arm32v7/debian:jessie-slim
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y \
curl \
python3-numpy \
python3-pil
WORKDIR /tmp
ARG RTIMULIB_VERSION=7.2.1-3
RUN curl -LO https://archive.raspberrypi.org/debian/pool/main/r/rtimulib/librtimulib-dev_${RTIMULIB_VERSION}_armhf.deb \
&& curl -LO https://archive.raspberrypi.org/debian/pool/main/r/rtimulib/librtimulib-utils_${RTIMULIB_VERSION}_armhf.deb \
&& curl -LO https://archive.raspberrypi.org/debian/pool/main/r/rtimulib/librtimulib7_${RTIMULIB_VERSION}_armhf.deb \
&& curl -LO https://archive.raspberrypi.org/debian/pool/main/r/rtimulib/python3-rtimulib_${RTIMULIB_VERSION}_armhf.deb \
&& curl -LO https://archive.raspberrypi.org/debian/pool/main/p/python-sense-hat/python3-sense-hat_2.2.0-1_armhf.deb
RUN dpkg -i \
librtimulib-dev_${RTIMULIB_VERSION}_armhf.deb \
librtimulib-utils_${RTIMULIB_VERSION}_armhf.deb \
librtimulib7_${RTIMULIB_VERSION}_armhf.deb \
python3-rtimulib_${RTIMULIB_VERSION}_armhf.deb \
python3-sense-hat_2.2.0-1_armhf.deb
RUN rm -f /tmp/*.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
According to the minimal research I did, it seems like I2C needs to be enabled. In the boot config we already do
dtparam=i2c_arm=on
but i'm not sure if that suffices.What may also be required is the following dev rule for the GPIO pins (not sure)