Archive mirrors in LXD containers

When using snapcraft cleanbuild or SNAPCRAFT_CONTAINER_BUILDS=1 snapcraft the LXD container uses default sources regardless of what’s setup on the host. Defaults can be painfully slow in some locations where a local mirror is required.

  • Ideally snapcraft could be smart out of the box and figure out what’s being used on the system
  • We probably also want a config option for this or an environment variable
3 Likes

I agree, and I wonder the --enable-geoip option in snapcraft cleanbuild means?

It means that Snapcraft will try to use a local mirror for stage-packages that may be faster.

1 Like