SaadKhan-BCG / CarbonPlugin

Tool to monitor and expose Carbon consumption of apps by region to aid Carbon Aware development
0 stars 0 forks source link

Specify time regions via a cli #23

Closed SaadKhan-BCG closed 1 year ago

SaadKhan-BCG commented 1 year ago

At current the only way to specify time regions is to edit the env var in the docker compose, This is not suitable for the bcgx cli which does not expose the file to end users, need to add it as a cli flag and pass through to docker compsoe

SaadKhan-BCG commented 1 year ago

looks like docker compose only has a --env-file option no --env sadly

current plan: Update the compose.yml to try and read from env variables and default to ukwest, etc (ie what i have already)

In BCGX cli the dashboard command can:

  1. create a tmp .env file (see similar code for tmp file of docker compose)
  2. edit the exec command to add this option

For main repo: In the tldr instructions just tell ppl to create a .env file and add the flag to the command