Skip to content

Instantly share code, notes, and snippets.

@lukasz-kaniowski
Forked from loudnate/Dockerfile
Created May 31, 2016 19:29
Show Gist options
  • Save lukasz-kaniowski/ef4a29928d2e732824ea58fc3b5fa96a to your computer and use it in GitHub Desktop.
Save lukasz-kaniowski/ef4a29928d2e732824ea58fc3b5fa96a 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 <[email protected]>
# Install dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
git \
python \
python-dev \
python-setuptools \
python-software-properties \
python-numpy \
python-pip \
nodejs-legacy \
npm \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# Install openaps
RUN easy_install -ZU setuptools && 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