-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathpkg.yaml
33 lines (30 loc) · 921 Bytes
/
pkg.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
name: iscsi-tools
variant: scratch
shell: /bin/bash
dependencies:
# `base` dependency is used for doing cleanups
# not copied to rootfs
- stage: base
- stage: open-iscsi
steps:
- install:
- |
mkdir -p /rootfs/usr/local/lib/containers/iscsid
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
# cleanup
rm -rf /rootfs/usr/local/include
rm -rf /rootfs/usr/share
- |
mkdir -p /rootfs/usr/local/etc/containers
cp /pkg/iscsid.yaml /rootfs/usr/local/etc/containers/iscsid.yaml
test:
- |
mkdir -p /extensions-validator-rootfs
cp -r /rootfs/ /extensions-validator-rootfs/rootfs
cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml
/extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}"
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /