Docker dockerfile - jcallaghan/home-assistant-config GitHub Wiki

***Draft

script and dockerfile in same directory
define dockerfile
build docker 

Build with the following command /docker-wensn-mqtt $ docker build -t "docker_wensn:v1" .

To find USB devices

pi@rpi-weather:~/docker-wensn-mqtt $ lsusb
Bus 001 Device 005: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Bus 001 Device 004: ID 16c0:05dc Van Ooijen Technische Informatica shared ID for use with libusb
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

pi@rpi-weather:~/docker-wensn-mqtt $ dmesg | egrep '16c0|acm'
[    2.238283] usb 1-1.2: New USB device found, idVendor=16c0, idProduct=05dc, bcdDevice= 1.02

For RTL_433

lsusb | grep RTL2838

Useful links

https://www.linickx.com/docker-your-python-scripts https://iotbyhvm.ooo/docker-container-raspberry-pi/ https://jackstromberg.com/2020/02/home-assistant-z-wave-docker-raspberrypi/

Todo

  • Compose

  • Build file to speed up build process

  • Travis integration and auto-build

  • Base images use Balena images instead of the deprecated resin kind

FROM resin/rpi-raspbian:jessie
FROM balenalib/rpi-raspbian

RTL433 docker

Meater docker

docker build -t "docker_meater:v1" .
docker run -a stdin -a stdout -i -t "meater" -it --net host docker_meater:v1




Variables

Python

Example readme

Description

This is the base image for the Raspberry Pi. For more details about repo, see here.

jcallaghan/image is built weekly? from this repository. For more details about available tags, see dockerhub.

Support

If you're having any problem, please raise an issue on GitHub.