Skip to content
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

Not getting the image #57

Open
eliassal opened this issue Aug 14, 2024 · 9 comments
Open

Not getting the image #57

eliassal opened this issue Aug 14, 2024 · 9 comments

Comments

@eliassal
Copy link

Thanks for your help and response on the original inactive github project. I did visit your fork and followed your instructions by running

blast-radius --serve "C:\Projects\...........\Terraform - Full Course\weatherapi"
the path contains a terraform initialized project

it runs then I choose Firefox, I get a page with python code as follows (not sure what should I do to have the image insttead of code)

image

@Ianyliu
Copy link
Owner

Ianyliu commented Nov 29, 2024

@eliassal Could you provide more details? Does the CLI show any output or errors?

@eliassal
Copy link
Author

Nothing
image
and here is the same output

image

@eliassal
Copy link
Author

eliassal commented Dec 5, 2024

@Ianyliu any feedback please?

@Ianyliu
Copy link
Owner

Ianyliu commented Dec 5, 2024

@eliassal how are you running it? could you try running it via Docker?

@eliassal
Copy link
Author

eliassal commented Dec 5, 2024

I am running the tool in a powershell terminal. in Docker? How?

@Ianyliu
Copy link
Owner

Ianyliu commented Dec 5, 2024

Hi @eliassal After you install Docker Desktop, try the following in the Terraform directory:

docker run --rm -it -p 5000:5000  -v ${pwd}:/data:ro --security-opt apparmor:unconfined --cap-add=SYS_ADMIN ianyliu/blast-radius-fork

@eliassal
Copy link
Author

eliassal commented Dec 6, 2024

Thanks @Ianyliu , I have already docker desktop, I ran the command you gave and it did not work for the project I was using with backend error as you can notice in snapshot 1, I tried both init --migrate and the 2nd init reconfigure but it gives a backend error, so is this a terrafoprm error or blast error?
image

but it worked for another project and I got a graph as you can see in snapshot 1. However,

image

@eliassal
Copy link
Author

eliassal commented Dec 6, 2024

Also, I tried in terminal running blast-radius for the 2nd project as I throught it ws a terraform issue but gave the same error as the 1st one; it did not display the graph

blast-radius --serve "C:\Projects\AzureDevOpsProjects\terraform\MS-Quickstart\Direct web traffic with Application Gateway"

image

@eliassal
Copy link
Author

eliassal commented Dec 6, 2024

Another question, when graph was displayed correctly, is it possible to tell the blast docker container to save it to a directory in the host machine?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants