unixerius / DSO

Files for the Unixerius / ITVitae training "Introduction to DevSecOps"
https://unixerius.nl/dso-en.html
Other
2 stars 2 forks source link

Vagrant build on Windows 11 is SLOW #9

Open unixerius opened 1 week ago

unixerius commented 1 week ago

The problem is mostly in Docker on the Ubuntu VM. Pulling images and verifying the hashes is crazy slow. Which is weird, because based on top output, the VM is doing almost nothing.

unixerius commented 1 week ago

I have done a few tests, I assume this problem is caused by VirtualBox's continued clash with Windows 10/11 virtualization.

These are the times reported to complete a Juice Shop "npm install". All have six CPU cores and 8192 MB RAM.

To make life easier and better for our students we will need to provide different lab guides and Vagrantfiles.

unixerius commented 1 week ago

More comparison, this time of time docker build -t juicy . in the Juice Shop 15.0.0 repo.

Interesting that the Docker build was noticeably slower on amd64 compared to the M2, when the npm install was comparable between Qemu@aarch64 and Hypber-V@amd64.