balena-io-experimental / browser

A drop-in web browser block
98 stars 75 forks source link

Added Screenshot endpoint using scrot. #106

Closed 0Merlin0 closed 2 years ago

0Merlin0 commented 2 years ago

Change-type: minor The screenshot is taken using scrot. A temporary file is created based on hrtime to avoid conflicts of concurrent requests. I tried using '/dev/stdout', '/dev/fd/1' or '/proc/self/fd/1' and the '-o' flag to get the image directly through standard out (newer versions of scrot support this by passing '-'), but it did not work, so I settled for the temporary file.

fixes #103

ghost commented 2 years ago

Your landr site preview has been successfully deployed to https://landr-0merlin0-repo-browser.netlify.app

Deployed with Landr 9.4.12

phil-d-wilson commented 2 years ago

I think our Actions won't work with your merge - but I can kick off a build manually to build the images.

They'll be available as a docker pull here: bh.cr/balenablocks/browser-<arch>