-
Notifications
You must be signed in to change notification settings - Fork 8
Docker dockerfile
James Callaghan edited this page May 31, 2020
·
4 revisions
***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
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/
-
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
- https://github.com/LinuxChristian/rtl_433-docker/blob/master/Dockerfile
- https://github.com/sofwerx/rpi-rtl433/blob/master/Dockerfile
- https://stackoverflow.com/questions/24225647/docker-a-way-to-give-access-to-a-host-usb-or-serial-device
- https://github.com/balena-io-library/resin-rpi-raspbian
- https://github.com/don41382/docker-rpi-python3-with-bluetooth
- https://medium.com/george-adams-iv/using-raspberry-pi-3-s-bluetooth-in-docker-e9cdf6062d6a
- https://iotbyhvm.ooo/docker-container-raspberry-pi/
docker build -t "docker_meater:v1" .
docker run -a stdin -a stdout -i -t "meater" -it --net host docker_meater:v1
- https://stackoverflow.com/questions/49770999/docker-env-for-python-variables
- https://github.com/clyra/mqtt-zwift
- https://stackoverflow.com/questions/25717591/automatically-create-docker-container-and-launch-python-script
- https://www.linickx.com/docker-your-python-scripts
- https://runnable.com/docker/python/dockerize-your-python-application
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.
If you're having any problem, please raise an issue on GitHub.