This commit is contained in:
Mats Tornberg
2025-11-22 15:51:26 +01:00
parent 60f5783a26
commit 00f236cac7
27 changed files with 6319 additions and 67 deletions

12
Makefile Normal file
View File

@@ -0,0 +1,12 @@
.PHONY: build run run-bash
IMAGE_NAME := go-telldus-matter
build:
docker build -t $(IMAGE_NAME) .
run:
docker run --rm --privileged -p 8081:8080 -v /dev/bus/usb:/dev/bus/usb -v $(PWD)/tellstick.conf:/etc/tellstick.conf -v $(PWD)/db:/go/src/app/db -e MQTT_URL=10.10.3.12:1883 -e MQTT_USER=telldus-dev -e MQTT_PASSWORD= $(IMAGE_NAME)
run-bash:
docker run --rm -it --privileged -p 8081:8080 -v /dev/bus/usb:/dev/bus/usb -v $(PWD)/tellstick.conf:/etc/tellstick.conf -v $(PWD)/db:/go/src/app/db --entrypoint /bin/bash $(IMAGE_NAME)