marmelab / greenframe-cli

Estimate the carbon footprint of a user scenario on a web application
https://greenframe.io
Other
235 stars 12 forks source link

Is there any way to pull image apart from mcr.microsoft #70

Open Anushas42 opened 10 months ago

Anushas42 commented 10 months ago

I am getting this error while analyzing this server, the command i used "greenframe analyze https://mamelab.com"

✔ Check configuration file ✔ The folder is not a git repository ✔ Analysis is in progress locally ✔ Docker version 20.10.8, build 3967b7d ✔ Running 1 scenario(s)...

Analysis complete !

Result summary:

❌ main scenario failed This scenario fail during the execution: Command failed: docker rm -f greenframe-runner && docker create --tty --name greenframe-runner --rm -e HOSTIP=172.17.0.1 --add-host localhost:172.17.0.1 mcr.microsoft.com/playwright:v1.30.0-focal Error: No such container: greenframe-runner Unable to find image 'mcr.microsoft.com/playwright:v1.30.0-focal' locally Error response from daemon: Get "https://mcr.microsoft.com/v2/": Proxy Authentication Required

Help me resolve this

let me know if there is any alternative way to analyse this without having to use docker

multikoop commented 10 months ago

@Anushas42 this one works for me inside a coporate network:

docker pull somepublic or inhouse registry/mcr.microsoft.com/playwright:v1.30.0-focal
..
docker tag 274d62c0dcda mcr.microsoft.com/playwright:v1.30.0-focal

Now run greenframe analyze https://mamelab.com/ again. Hope it works for you...

Anushas42 commented 10 months ago

@multikoop Thanks the issue is resolved

Anushas42 commented 10 months ago

@multikoop , I am trying to analyze using github actions seems like its throwing 403 forbidden error with my API token. Should we provide any access to the token and what role user must posses to get it work with github actions.

image
fzaninotto commented 10 months ago

Are you referring to the greenframe.io subscriber token? Did you read the following tutorial? https://docs.greenframe.io/commands#syncing-with-greenframeio