Revision [6159]

This is an old revision of TDMDocker made by ZorrUno on 2020-08-20 10:24:50.

 

Tasmota Device Manager and Docker


dockerfile

FROM jlesage/baseimage-gui:debian-10
#FROM debian:stable

RUN apt-get update && apt-get upgrade -y
RUN add-pkg libqt5x11extras5 python3 python3-pip git -y --no-install-recommends
RUN pip3 install --upgrade pip
RUN pip3 install setuptools

# Install Tasmota Device Manager
RUN pip3 install tdmgr

# Environment Variables
#ENV TZ="Pacific/Auckland"
# Copy the start script.
COPY startapp.sh /startapp.sh

# Expose ports
#EXPOSE 5810 5910

# Create volume
VOLUME /config



Docker Compose

version: '3.3'
services:
	tasmota-device-manager:
	build: .
	volumes:
		- "/dockervolumes/tasmota-device-manager/config:/config"
		- "/etc/localtime:/etc/localtime:ro"
		- "/etc/timezone:/etc/timezone:ro"
	ports:
		- '5810:5810'
		- '5910:5910'
	container_name: tasmota-device-manager
	hostname: tasmota-device-manager
	restart: unless-stopped


/startapp.sh

#!/bin/sh
export HOME=/home/app
exec /usr/bin/python3 /usr/local/bin/tdmgr.py


Error Logs

[app] starting DockerApp...
Traceback (most recent call last):
  File "/usr/local/bin/tdmgr.py", line 577, in <module>
	start()
  File "/usr/local/bin/tdmgr.py", line 570, in start
	MW = MainWindow()
  File "/usr/local/bin/tdmgr.py", line 61, in __init__
	os.mkdir("{}/TDM".format(QDir.homePath()))
FileNotFoundError: [Errno 2] No such file or directory: '/home/app/TDM'
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki