4 The external dependency package will not build in the snapcraft
5 vm. The path of least resistance is to copy it to the root of the
6 (original) workspace before running the prep script.
8 Snapcraft has mount issues except under /home. Run the prep script and
9 copy the entire directory (including the .tgz file) under
16 $ cd <vpp-workspace>/extras/snap
20 Copy data to /home (if necessary)
24 $ cd <vpp-workspace>/extras/snap
27 Set snapcraft environment variables
28 -----------------------------------
33 SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY=16G
34 SNAPCRAFT_BUILD_ENVIRONMENT_DISK=32G
40 SNAPCRAFT_BUILD_ENVIRONMENT_CPU=8
41 SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=yes
47 With luck, simply running snapcraft will produce the snap
50 $ <environment-variable-settings> snapcraft [--debug]
53 Rerunning snapcraft phases
54 --------------------------
56 Here's how to (re)run individual phases, to avoid starting from
57 scratch N times in case of errors:
60 snapcraft pull [<part-name>]
61 snapcraft build [<part-name>]
62 snapcraft stage [<part-name>]
63 snapcraft prime [<part-name>]
64 snapcraft snap or snapcraft
67 Restart without rebuilding VM
68 -----------------------------
70 To restart from scratch without rebuilding the VM:
76 Delete (all) snapcraft VMs
77 --------------------------
80 for vm in $(multipass list | awk '{print $1}' | grep ^snapcraft-); do
81 multipass delete $vm --purge