From bb5d7f648b9784b0c05c46e16edf2203dda2ffff Mon Sep 17 00:00:00 2001 From: Arif Ali Date: Mon, 6 Sep 2021 10:25:36 +0100 Subject: Add snap configuration file After discussion with the snapcraft team, this fits the bill for a classic snap Closes: #1992 Reference: https://forum.snapcraft.io/t/25673 Reference: https://forum.snapcraft.io/t/26447 Signed-off-by: Nicolas Bock nicolas.bock@canoical.com Signed-off-by: Arif Ali --- snap/snapcraft.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 00000000..570c3302 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,37 @@ +name: sosreport +summary: Sos is an extensible, portable, support data collection tool +description: | + Sos is an extensible, portable, support data collection tool + primarily aimed at Linux distributions and other UNIX-like operating + systems. +grade: stable +base: core20 +confinement: classic +adopt-info: sos + +parts: + sos: + plugin: python + source: . + override-pull: | + snapcraftctl pull + snapcraftctl set-version $(git describe --tags --always) + build-packages: + - git + - python3 + - snapcraft + - gettext + +apps: + sos: + environment: + PYTHONPATH: ${SNAP}/lib/python3.8 + command: bin/sos + sosreport: + environment: + PYTHONPATH: ${SNAP}/lib/python3.8 + command: bin/sos report + sos-collector: + environment: + PYTHONPATH: ${SNAP}/lib/python3.8 + command: bin/sos collector -- cgit