ktock / container2wasm

Container to WASM converter
https://ktock.github.io/container2wasm-demo/
Apache License 2.0
2.03k stars 80 forks source link

Scaling or pre-sizing images #192

Open Cinemacloud opened 10 months ago

Cinemacloud commented 10 months ago

How do I resize or configure the size at build? I didn't see much mention of that but perhaps entirely a docker concern and question?

ktock commented 10 months ago

Is this duplication of #191 ?

EDIT: I've added some comments on that thread.

Cinemacloud commented 10 months ago

More or less but curious how I can at least tweak storage size (through Docker?) before its implemented in c2w itself.. or not possible?

ktock commented 10 months ago

tweak storage size (through Docker?)

Could you elaborate what "storage" means? The storage usage by docker during build? Or the output Wasm image size? Or the disk size of the container(VM) running on browser?

Cinemacloud commented 10 months ago

yes, practically I was just updating the packages and it quickly ran out of space and stopped working.

ktock commented 10 months ago

We rely on docker build for generating wasm images so it sounds like Docker's concern. If it's ok to remove your Docker build cache, Docker provides docker builder prune for removing build cache and increasing free space. https://docs.docker.com/engine/reference/commandline/builder_prune/

Cinemacloud commented 10 months ago

So c2w has no practical limits other than Docker prescribes via images and containers?

ktock commented 10 months ago

Yes. If needed, we can fix c2w to optionally use some flags of docker build for limiting resource usage: https://docs.docker.com/engine/reference/commandline/build/#options

Cinemacloud commented 10 months ago

That would be awesome or show me how I can do it in few steps I plan to use this in a big project poc, thanks!

Cinemacloud commented 4 months ago

Just curious if you were able to give hardware scaling params into build yet and also could you put together a demo using Neko browser which is docker based already.