From 7e98117200067efee1ced9055427baa5ad63f5f8 Mon Sep 17 00:00:00 2001 From: Oren Lederman Date: Tue, 14 Aug 2018 17:05:22 -0400 Subject: [PATCH] Fixing raspi issues --- compose/Dockerfile_raspi | 10 ++++++++-- docker-compose-raspi.yml | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/compose/Dockerfile_raspi b/compose/Dockerfile_raspi index bd2c699..bc99193 100644 --- a/compose/Dockerfile_raspi +++ b/compose/Dockerfile_raspi @@ -41,8 +41,8 @@ COPY compose/JLink_Linux_V616i_arm.tgz /opt/downloads/JLink_Linux_V616i_arm.tgz RUN tar -C /opt/ -xzf downloads/JLink_Linux_V616i_arm.tgz RUN ln -s /opt/JLink_Linux_V616i_arm/JLinkExe /usr/local/bin/JLinkExe -# Uncomment if running on a remote raspberry pi machine -#COPY . /app +# Fix missing library error +RUN ln -s /lib/arm-linux-gnueabihf/libudev.so.1 /lib/arm-linux-gnueabihf/libudev.so.0 ################################ ## Bluetooth Python environment @@ -61,3 +61,9 @@ RUN apt-get update && apt-get install -y \ COPY ./requirements.txt /tmp/requirements.txt RUN pip install -r /tmp/requirements.txt + +################################ +## Misc +################################ +# Uncomment if running on a remote raspberry pi machine +#COPY . /app diff --git a/docker-compose-raspi.yml b/docker-compose-raspi.yml index c7beeec..ae536af 100644 --- a/docker-compose-raspi.yml +++ b/docker-compose-raspi.yml @@ -11,5 +11,6 @@ services: - .:/app - /dev/bus/usb:/dev/bus/usb #required for serial port access privileged: true + network_mode: "host" #required for bluetooth access entrypoint: ["/app/compose/entry_point.sh"] command: ["badge_03v6_noDebug","flashAPP"]