aboutsummaryrefslogtreecommitdiffstats
path: root/snap/snapcraft.yaml
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2021-09-06 10:25:36 +0100
committerJake Hunsaker <jhunsake@redhat.com>2021-09-14 15:42:39 -0400
commitbb5d7f648b9784b0c05c46e16edf2203dda2ffff (patch)
treed0b3ac2d8ae4d293f9075296b8b8e17ee41d18b6 /snap/snapcraft.yaml
parent23e523b6b9784390c7ce2c5af654ab497fb10aaf (diff)
downloadsos-bb5d7f648b9784b0c05c46e16edf2203dda2ffff.tar.gz
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 <arif.ali@canonical.com>
Diffstat (limited to 'snap/snapcraft.yaml')
-rw-r--r--snap/snapcraft.yaml37
1 files changed, 37 insertions, 0 deletions
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