tesla_exporter
tesla_exporter copied to clipboard
oauth login is clunky compared to docker run
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
You can get the credentials using any other tool ;)