aboutsummaryrefslogtreecommitdiffstats
path: root/extras/snap/snapcraft.yaml
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2021-01-26 10:51:13 -0500
committerDave Barach <openvpp@barachs.net>2021-01-26 16:07:53 +0000
commit832a31652607244331f2acafbcda158b7577a919 (patch)
tree8999265413c1fa6cb41be3fab8d605fab0ee5d0a /extras/snap/snapcraft.yaml
parent86f1232ddee5b1751c6ff683892072111d0e2dee (diff)
misc: fix snap image build
Clean up snapcraft.yaml bit rot, switch to Ubuntu 20.04, add README.md Type: improvement Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I2e0d3925cf43541e70b59083f8c91af539aa34e6
Diffstat (limited to 'extras/snap/snapcraft.yaml')
-rw-r--r--extras/snap/snapcraft.yaml12
1 files changed, 7 insertions, 5 deletions
diff --git a/extras/snap/snapcraft.yaml b/extras/snap/snapcraft.yaml
index 7fce0af372b..9a9dbd21e3f 100644
--- a/extras/snap/snapcraft.yaml
+++ b/extras/snap/snapcraft.yaml
@@ -1,6 +1,6 @@
name: vpp
-base: core18
-version: '20.05'
+base: core20
+version: '21.01'
summary: Vector Packet Processor
description: |
High performance user-mode network stack
@@ -17,14 +17,16 @@ parts:
- gcc-8
- make
- libnuma-dev
+ - libpcap-dev
stage-packages:
# For the dpdk plugin
- libnuma1
override-build: |
- UNATTENDED=y make install-dep build-release
+ dpkg -i vpp-ext-deps*.deb || true
+ UNATTENDED=y make install-dep install-ext-deps build-release
override-prime: |
- # Copy the build results into SNAPCRAFT_PRIME
- cd $SNAPCRAFT_PART_BUILD/build-root/install-vpp-native
+ # Copy the build result into SNAPCRAFT_PRIME
+ cd $SNAPCRAFT_PART_SRC/../build/build-root/install-vpp-native
tar cf - . | (cd $SNAPCRAFT_PRIME ; tar xf -)
# Copy staged libraries into SNAPCRAFT_PRIME
cp $SNAPCRAFT_STAGE/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/lib* $SNAPCRAFT_PRIME/vpp/lib