aboutsummaryrefslogtreecommitdiffstats
path: root/snap/snapcraft.yaml
blob: 0919e4f8d18e9c1e8df3fe1d4fba08db29c8c164 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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: core22
confinement: classic
adopt-info: sos

parts:
  sos:
    plugin: python
    source: .
    override-pull: |
      craftctl default
      craftctl set version="$(git describe --tags --always)"
    build-packages:
      - git
      - python3
      - snapcraft
      - gettext
    stage-packages:
      - python3-magic
      - python3-venv

apps:
  sos:
    environment:
      PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.10/site-packages:${SNAP}/usr/lib/python3/dist-packages
    command: bin/sos
  sosreport:
    environment:
      PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.10/site-packages:${SNAP}/usr/lib/python3/dist-packages
    command: bin/sos report
  sos-collector:
    environment:
      PYTHONPATH: ${PYTHONPATH}:${SNAP}/lib/python3.10/site-packages:${SNAP}/usr/lib/python3/dist-packages
    command: bin/sos collector