tesla_exporter icon indicating copy to clipboard operation
tesla_exporter copied to clipboard

oauth login is clunky compared to docker run

Open chadmiller opened this issue 4 years ago • 1 comments

It's pretty great being able to run docker and have dependencies met.

Asking us to use docker, but first also clone the whole source code of a related project and also have bazel installed (!) is almost as bad as not having docker facilities at all.

It would be much much better to have something inside the docker container, with access to built programs, create the oauth JSON files.

I don't know much of the details of docker, but perhaps a user-interface that looks like this would work.

docker exec \
  -v "$(pwd)/oauth2_config.json":/etc/secret/oauth2_config.json \
  -v "$(pwd)/oauth2_token.json":/etc/secret/oauth2_token.json \
  ghcr.io/uhthomas/tesla_exporter log-in-creates-oauth-json /etc/secret/oauth2_config.json /etc/secret/oauth2_token.json

chadmiller avatar Dec 29 '21 22:12 chadmiller

You can get the credentials using any other tool ;)

andig avatar Apr 14 '22 16:04 andig