go-echarts / snapshot-chromedp

⚔️ The extension for render image in go-echarts.
MIT License
12 stars 1 forks source link

Run in Docker #14

Closed nikitosl closed 3 weeks ago

nikitosl commented 1 month ago

Hello! Really nice lib for generating charts on go and nice tool to make it in .png format! Script works perfect locally, but when I am trying to wrap it into docker container, that issue appears: "error":"exec: \"google-chrome\": executable file not found in $PATH" I have added github.com/chromedp/chromedp to vendor as well. May be someone else met this problem? Do I need to install chrome to my image? Thanks for any ideas!!

Koooooo-7 commented 1 month ago

Hi @nikitosl ,yes, we need a Chrome runtime in the container. Alternatively, in the CI, I use the docker-headless-shell, you could take a look on it. I suppose you could have a docker-compose including it should work fine.