-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapcraft.yaml
40 lines (34 loc) · 929 Bytes
/
snapcraft.yaml
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: inventory-exporter # you probably want to 'snapcraft register <name>'
base: core20
version: '0.1'
summary: Exporter for apt packages and snaps in json via web
description: |
This snap runs a simple python http server that serves apt packages and snaps
in json format.
grade: stable # must be 'stable' to release into candidate/stable channels
confinement: classic # use 'strict' once you have the right plugs and slots
architectures:
- build-on: [amd64]
parts:
exporter:
plugin: dump
source: .
stage-packages:
- dpkg
apps:
inventory-exporter:
command: exporter.py -c $SNAP_COMMON/config.yaml
daemon: simple
plugs:
- network
- network-bind
- apt-dpkg-db
plugs:
apt-dpkg-db:
interface: system-files
read:
- /var/lib/snapd/hostfs/var/lib/dpkg
- /var/lib/snapd/hostfs/var/cache/apt
layout:
/usr/bin/dpkg:
bind-file: $SNAP/usr/bin/dpkg