6 The external dependency package will not build in the snapcraft vm. The
7 path of least resistance is to copy it to the root of the (original)
8 workspace before running the prep script.
10 Snapcraft has mount issues except under /home. Run the prep script and
11 copy the entire directory (including the .tgz file) under
19 $ cd <vpp-workspace>/extras/snap
22 Copy data to /home (if necessary)
27 $ cd <vpp-workspace>/extras/snap
30 Set snapcraft environment variables
31 -----------------------------------
35 SNAPCRAFT_BUILD_ENVIRONMENT_MEMORY=16G
36 SNAPCRAFT_BUILD_ENVIRONMENT_DISK=32G
43 SNAPCRAFT_BUILD_ENVIRONMENT_CPU=8 SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=yes
51 With luck, simply running snapcraft will produce the snap
58 Rerunning snapcraft phases
59 --------------------------
61 Here's how to (re)run individual phases, to avoid starting from
62 scratch N times in case of errors:
64 snapcraft pull [] snapcraft build [] snapcraft stage [] snapcraft prime
65 [] snapcraft snap or snapcraft
70 Restart without rebuilding VM
71 -----------------------------
73 To restart from scratch without rebuilding the VM:
80 Delete (all) snapcraft VMs
81 --------------------------
83 for vm in $(multipass list \| awk ‘{print $1}’ \| grep ^snapcraft-); do
84 multipass delete $vm –purge done \``\`