-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.container-structure-test.yaml
64 lines (61 loc) · 1.56 KB
/
.container-structure-test.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
schemaVersion: '2.0.0'
metadataTest:
env:
- key: PATH
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
entrypoint: []
cmd: ["nginx", "-g", "daemon off;"]
exposedPorts: ["80", "443"]
fileExistenceTests:
- name: 'FILE check docker-disable-recommends'
path: '/etc/apt/apt.conf.d/docker-disable-recommends'
shouldExist: true
permissions: '-rw-r--r--'
uid: 0
gid: 0
- name: 'check /usr/share/man/man1'
path: '/usr/share/man/man1'
shouldExist: true
permissions: 'drwxr-xr-x'
uid: 0
gid: 0
- name: 'check /usr/share/man/man7'
path: '/usr/share/man/man1'
shouldExist: true
permissions: 'drwxr-xr-x'
uid: 0
gid: 0
- name: 'check /var/cache/nginx/'
path: '/var/cache/nginx/'
shouldExist: true
permissions: 'drwxr-xr-x'
uid: 33
gid: 33
- name: 'check /etc/nginx/'
path: '/etc/nginx/'
shouldExist: true
permissions: 'drwxr-xr-x'
uid: 0
gid: 0
- name: 'check /etc/nginx/commons.d/'
path: '/etc/nginx/commons.d/'
shouldExist: true
permissions: 'drwxr-xr-x'
uid: 0
gid: 0
- name: 'check /etc/nginx/conf.d/'
path: '/etc/nginx/conf.d/'
shouldExist: true
permissions: 'drwxr-xr-x'
uid: 0
gid: 0
- name: 'check /etc/nginx/site.d/'
path: '/etc/nginx/site.d/'
shouldExist: true
permissions: 'drwxr-xr-x'
uid: 0
gid: 0
fileContentTests:
- name: 'APT disable install recommends'
expectedContents: ['APT::Install-Recommends "false";']
path: '/etc/apt/apt.conf.d/docker-disable-recommends'