Skip to content

Instantly share code, notes, and snippets.

@loudnate
Last active October 7, 2017 16:12
Show Gist options
  • Save loudnate/e70a2a578ec87e2d17f6 to your computer and use it in GitHub Desktop.
Save loudnate/e70a2a578ec87e2d17f6 to your computer and use it in GitHub Desktop.
DockerHub:loudnate/openaps-dev

Docker: OpenAPS on Raspberry Pi

OpenAPS is a utility interface to read, report, and control diabetes management applications.

This is an image from which developers who build "dockerized" applications using OpenAPS can source from.

Info

DockerHub Repository

Host setup

For the host to auto-detect USB devices, you'll need to install the udev rules:

sudo curl -o /etc/udev/rules.d/80-medtronic-carelink.rules https://raw.githubusercontent.com/bewest/decoding-carelink/master/decocare/etc/80-medtronic-carelink.rules
sudo curl -o /etc/udev/rules.d/80-dexcom.rules https://raw.githubusercontent.com/bewest/dexcom_reader/master/dexcom_reader/etc/udev/rules.d/80-dexcom.rules

Running a container

Running openaps in a Docker container will require you to expose any necessary USB interface(s) and add /dev/log as a volume.

docker run -i -t --device=`readlink -fn /dev/serial/by-id/usb-0a21_8001-if00-port0`:/dev/serial/by-id/usb-0a21_8001-if00-port0 -v=/dev/log:/dev/log loudnate/rpi-openaps bash
# Pull base image
FROM resin/rpi-raspbian:wheezy
MAINTAINER Nathan Racklyeft <loudnate@gmail.com>
# Install dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
git \
python \
python-setuptools \
python-numpy \
python-software-properties \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# Install openaps
RUN easy_install -Z openaps
# Define default command
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment