container2wasm icon indicating copy to clipboard operation
container2wasm copied to clipboard

Scaling or pre-sizing images

Open Cinemacloud opened this issue 1 year ago • 9 comments

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?

Cinemacloud avatar Jan 04 '24 22:01 Cinemacloud

Is this duplication of #191 ?

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

ktock avatar Jan 05 '24 01:01 ktock

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

Cinemacloud avatar Jan 05 '24 01:01 Cinemacloud

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?

ktock avatar Jan 05 '24 01:01 ktock

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

Cinemacloud avatar Jan 05 '24 07:01 Cinemacloud

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/

ktock avatar Jan 05 '24 08:01 ktock

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

Cinemacloud avatar Jan 06 '24 07:01 Cinemacloud

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

ktock avatar Jan 06 '24 08:01 ktock

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 avatar Jan 08 '24 17:01 Cinemacloud

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.

Cinemacloud avatar Jun 19 '24 17:06 Cinemacloud