-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs for fetching token using container #780
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add instructions for docker container for token retrieval
I had a couple of questions about this Docker image. Is the And also, if this is solely for this purpose, would it make more sense for the That way it would just be a case of running this, rather than 3 commands. docker run --rm -it breph/ha-google-home_get-token:latest |
It is now :) https://github.com/Brephlas/dockerfile_breph-ha-google-home_get-token/tree/master Regarding the second question: I like the idea and played a little bit with this. Unfortunately, it seems it is not possible to run interactive scripts using this method. At least when asking for user input, the script fails.
|
Hi @Brephlas, I've just tested it locally (changing Also related to this image, I wonder if we could change to using Alpine to reduce the image size. 🤷🏻 FROM alpine:3.18
WORKDIR /app
RUN apk add py3-pip
COPY ./get_tokens.py .
COPY ./requirements.txt .
RUN python3 -m pip install -r ./requirements.txt
CMD python3 get_tokens.py This reduces the image from I guess Happy to move this discussion to your repo though, if that makes more sense. |
Thanks @owenvoke. Apparently, the issue was sitting in front of the screen, I missed the Regarding the docker secrets we can move the discussion to my repo. However, until now I have no experience with docker secrets |
I messed up with #772
Credits to @Brephlas