Closed bartek75 closed 1 year ago
Hi, for me it took way to long to even build the container so I cancelled it and ran it that way:
docker run -it python:3.9 /bin/bash
Inside that container:
python -m pip install --upgrade pip
then get the skript with:
wget https://raw.githubusercontent.com/Chouffy/home_assistant_tgtg/main/tgtg_get_tokens.py
and now run it:
python tgtg_get_tokens.py
Thanks @DasPflanze, but I think your steps are missing the script requirements. I got it working with:
python -m pip install --upgrade pip
wget https://raw.githubusercontent.com/Chouffy/home_assistant_tgtg/main/requirements.txt
pip install -r requirements.txt
wget https://raw.githubusercontent.com/Chouffy/home_assistant_tgtg/main/tgtg_get_tokens.py
python tgtg_get_tokens.py
@maxxer you are right, I missed that. Now I wondered why my way was that much quicker and realized, that while I used python:3.9 the Dockerfile used in the manual is running 3.8. Running the Dockerfile with 3.8 took so long, that I canceled it. Changing the Dockerfile to
FROM python:3.9-slim
solved that problem and is now as fast as one would expect.
System Health details
not relevant to HA
Checklist
Describe the issue
when running
docker build https://github.com/Chouffy/home_assistant_tgtg.git#main --tag "homeassistant_tgtg_tokens:latest"
on ubuntu 20 it fails withReproduction steps
Debug logs
Diagnostics dump
No response