-
Notifications
You must be signed in to change notification settings - Fork 5
/
cst.yml
78 lines (75 loc) · 1.67 KB
/
cst.yml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
schemaVersion: 2.0.0
metadataTest:
entrypoint: ["/bin/tini", "--"]
cmd: ["/entrypoint.sh"]
exposedPorts:
- "22"
- "873"
user: rsyncd
envVars:
- key: RSYNCD_DAEMON
value: rsyncd
- key: SSHD_PORT
value: "22"
- key: RSYNCD_PORT
value: "873"
- key: USER_ETC_DIR
value: /home/rsyncd/etc
- key: USER_RUN_DIR
value: /home/rsyncd/run
- key: HOST_KEYS_DIR
value: /home/rsyncd/etc/keys
- key: SSHD_LOG_LEVEL
value: INFO
volumes: ["/home/rsyncd", "/tmp"]
workdir: /home/rsyncd/data
fileExistenceTests:
- name: "Tini process wrapper"
path: "/bin/tini"
shouldExist: true
isExecutableBy: "any"
uid: 0
gid: 0
- name: "Rsync"
path: "/usr/bin/rsync"
shouldExist: true
isExecutableBy: "any"
uid: 0
gid: 0
- name: "Entrypoint script"
path: "/entrypoint.sh"
shouldExist: true
isExecutableBy: "any"
uid: 0
gid: 0
- name: "SSH"
path: "/ssh-rsync-wrapper.sh"
shouldExist: true
isExecutableBy: "any"
uid: 0
gid: 0
- name: "Rsyncd template configuration file"
path: "/home/rsyncd/etc/rsyncd.conf.orig"
shouldExist: true
uid: 1000
gid: 1000
- name: "SSHD template configuration file"
path: "/home/rsyncd/etc/sshd_config.orig"
shouldExist: true
uid: 1000
gid: 1000
- name: "User run dir"
path: "/home/rsyncd/run"
shouldExist: true
uid: 1000
gid: 1000
- name: "User data dir"
path: "/home/rsyncd/data"
shouldExist: true
uid: 1000
gid: 1000
commandTests:
- name: "Tini is installed with the correct version"
command: "tini"
args: ["--version"]
expectedOutput: ["0.19.0"]