[Merge] ~davidkrauser/livecd-rootfs/+git/livecd-rootfs:bootable-buildd into livecd-rootfs:ubuntu/master

Michał Sawicz michal.sawicz at canonical.com
Mon Oct 21 16:41:06 UTC 2019


Review: Needs Information

Here's my luck with this :)

Snapcraft is assuming the existence of `snapd` in the image, so it fails on running `sudo snap`.

Apart from that, I'm not getting a DNS configured inside the instance (/etc/resolv.conf exists, but is empty).

All in all, I managed to (start to) build snaps by modifying Snapcraft like so: https://pastebin.canonical.com/p/gZ2WThxzs7/

@Sergio, maybe Snapcraft should include `packages: [sudo, snapd]` in its defauld cloud-init? Alternatively, it should be documented as a requirement that Build VMs must adhere to.

I couldn't build Multipass or Snapcraft due to this being Eoan, but that's not "your" problem :)



I took some timings and notes building Snapcraft itself:

$ annotate-output snapcraft

=== snapcraft at minimal ===
17:52:02 I: Started snapcraft
# 160MB image download
...
~17:52:50   Launched: snapcraft-snapcraft
...
17:54:55 O: 4 upgraded, 140 newly installed, 0 to remove and 12 not upgraded.                  
17:54:55 O: Need to get 126 MB of archives.                                                              
17:54:55 O: After this operation, 422 MB of additional disk space will be used.                 
...
17:58:04 O: Pulling snapcraft
^C

=== snapcraft at buildd ===
18:10:58 I: Started snapcraft
# 560MB image local copy (slowish SSD when writing a lot of data…)
...
~18:13:19   Launched: snapcraft-snapcraft
...
18:15:50 O: 0 upgraded, 84 newly installed, 0 to remove and 4 not upgraded.
18:15:50 O: Need to get 41.2 MB of archives.
18:15:50 O: After this operation, 188 MB of additional disk space will be used.
...
18:17:39 O: Pulling snapcraft
^C

==> 400MB bigger image, only 80MB less packages downloaded, 240MB less disk


=== multipass at minimal ===
18:32:29 I: Started snapcraft
# 160MB image download
...
~18:33:40   Launched: snapcraft-multipass
...
18:34:54 O: 4 upgraded, 276 newly installed, 0 to remove and 12 not upgraded.
18:34:54 O: Need to get 163 MB of archives.
18:34:54 O: After this operation, 899 MB of additional disk space will be used.
...
18:39:59 O: Pulling multipass
^C

=== multipass at buildd ===
18:19:43 I: Started snapcraft
# 560MB image local copy (see above)
...
~18:21:02   Launched: snapcraft-multipass
...
18:23:15 O: 0 upgraded, 193 newly installed, 0 to remove and 4 not upgraded.
18:23:15 O: Need to get 136 MB of archives.
18:23:15 O: After this operation, 871 MB of additional disk space will be used.
...
18:26:59 O: Pulling multipass
^C

==> 400MB bigger image, only 30MB less download, 21MB less disk space

These numbers need a grain of salt, as it's bionic vs. eoan, but it would be worth comparing the images to see why the difference.
-- 
https://code.launchpad.net/~davidkrauser/livecd-rootfs/+git/livecd-rootfs/+merge/373916
Your team Ubuntu Core Development Team is requested to review the proposed merge of ~davidkrauser/livecd-rootfs/+git/livecd-rootfs:bootable-buildd into livecd-rootfs:ubuntu/master.



More information about the Ubuntu-reviews mailing list