-
Notifications
You must be signed in to change notification settings - Fork 31
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
Please find a way to run this without building Chromium #23
Comments
What's wrong with using docker instead? |
Docker costs money. Unless you are going to host it? |
Something we can do though is ship binaries for macOS and Linux which should allow you to run without Docker on those platforms.
I'm not super familiar with Docker licensing terms, but it should be free for personal use. The image is exported as a standard OCI image (open-source format for container image), so you can use it with free software like If you're worried about rate-limit on |
@fathyb wrote:
Of course in my work environment Docker is also not allowed. So the only option is using an online hosting service like AWS, Azure, etc. But that requires money. Some popular free-tier alternatives to Heroku: https://render.com/docs/deploy-to-render |
Hey @Emasoft for most Docker containers it's possible to extract the image contents, mount /proc+/dev (sometimes), chroot, and run the entrypoint. I've tested that process on a CentOS Linux server that does not have any docker/podman installed and html2svg is working:
This is a 1.9GB folder (mostly libLLVM and /usr/gcc taking up space, but also xvfb x server). You might be able to more delicately integrate html2svg with your host system for a much smaller size - the
Also Note I haven't taken this route since the chroot is working just fine on my headless server and I don't have X installed (and don't want to muck with that installation). Good luck! |
@heyheyhello Thanks a lot! I shall try! 🙂 |
I wanted to share some progress on that: I rewrote html2svg in Rust and switched to using a custom headless implementation instead of Electron + xvfb. Combined with a new terminal back-end, this resulted in a new terminal-based browser named Carbonyl weighting ~50 MB compiled and not requiring any window manager.
|
@fathyb curiously is there any progress for this? I'm looking for using Carbonyl for rendering html to svg, but it seems like there is no documentation about it |
I work on an environment where I cannot compile binaries and run them.
Pure scripts, like bash, python, c# script, javascript/typescript or WASM, are fine.
Can you make this amazing tool available without having to compile chromium and run it?
This tool deserves to be more portable.
The text was updated successfully, but these errors were encountered: