alpinelinux / alpine-make-vm-image

Make customized Alpine Linux disk image for virtual machines
MIT License
300 stars 101 forks source link

use APK cache if available #14

Closed hpresnall closed 3 years ago

hpresnall commented 4 years ago

If /etc/apk/cache exists, use it when creating the VM. This prevents downloading the same packages over and over and lowers network traffic when installing multiple VMs.

It also makes an offline setup possible by using apk fetch to preload all required packages.

Verified by:

  1. creating a VM
  2. export APK_OPTS="--no-network"
  3. creating another VM without errors
jirutka commented 3 years ago

Merged as 63a0342a56559dd779f9cc5e2962291647bc1b29. Thank you for the contribution and sorry for such a long delay.