-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
124 lines (117 loc) · 3.43 KB
/
docker-compose.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.7'
x-volumes: &volumes
- .:/otrs-ce-installer
x-centos-volumes: ¢os-volumes
- .:/otrs-ce-installer
- /sys/fs/cgroup:/sys/fs/cgroup:ro
x-ubuntu-volumes: &ubuntu-volumes
- .:/otrs-ce-installer
- /sys/fs/cgroup:/sys/fs/cgroup:ro
services:
# Alpine Linux 3
test-alpine-3:
image: alpine:3
tty: true
volumes: *volumes
# CentOS 8
test-centos-8: &test-centos-8
build:
context: ¢os-8-context ./tests/centos-8
target: base
privileged: true
tty: true
volumes: *centos-volumes
# CentOS 8 with Perl installed
test-centos-8-stage-1:
<<: *test-centos-8
build:
context: *centos-8-context
target: stage-1
cache_from: [ test-centos-8:latest ]
# CentOS 8 with Perl and Apache installed
test-centos-8-stage-2:
<<: *test-centos-8
build:
context: *centos-8-context
target: stage-2
cache_from: [ test-centos-8-stage-1:latest ]
# CentOS 8 with Perl, Apache and MariaDB installed
test-centos-8-stage-3:
<<: *test-centos-8
build:
context: *centos-8-context
target: stage-3
cache_from: [ test-centos-8-stage-2:latest ]
# CentOS 8 with Perl, Apache, MariaDB and required Perl modules installed
test-centos-8-stage-4:
<<: *test-centos-8
build:
context: *centos-8-context
target: stage-4
cache_from: [ test-centos-8-stage-3:latest ]
# Ubuntu 20.04
test-ubuntu-20-04: &test-ubuntu-20-04
build:
context: &ubuntu-20-04-context ./tests/ubuntu
dockerfile: 20.04/Dockerfile
target: base
privileged: true
tty: true
volumes: *ubuntu-volumes
# Ubuntu 20.04 with Perl and Apache installed
test-ubuntu-20-04-stage-1:
<<: *test-ubuntu-20-04
build:
context: *ubuntu-20-04-context
dockerfile: 20.04/Dockerfile
target: stage-1
cache_from: [ test-ubuntu-20-04:latest ]
# Ubuntu 20.04 with Perl, Apache and MariaDB installed
test-ubuntu-20-04-stage-2:
<<: *test-ubuntu-20-04
build:
context: *ubuntu-20-04-context
dockerfile: 20.04/Dockerfile
target: stage-2
cache_from: [ test-ubuntu-20-04-stage-1:latest ]
# Ubuntu 20.04 with Perl, Apache, MariaDB and Perl modules installed
test-ubuntu-20-04-stage-3:
<<: *test-ubuntu-20-04
build:
context: *ubuntu-20-04-context
dockerfile: 20.04/Dockerfile
target: stage-3
cache_from: [ test-ubuntu-20-04-stage-2:latest ]
# Ubuntu 21.04
test-ubuntu-21-04: &test-ubuntu-21-04
build:
context: &ubuntu-21-04-context ./tests/ubuntu
dockerfile: 21.04/Dockerfile
target: base
privileged: true
tty: true
volumes: *ubuntu-volumes
# Ubuntu 21.04 with Perl and Apache installed
test-ubuntu-21-04-stage-1:
<<: *test-ubuntu-21-04
build:
context: *ubuntu-21-04-context
dockerfile: 21.04/Dockerfile
target: stage-1
cache_from: [ test-ubuntu-21-04:latest ]
# Ubuntu 21.04 with Perl, Apache and MariaDB installed
test-ubuntu-21-04-stage-2:
<<: *test-ubuntu-21-04
build:
context: *ubuntu-21-04-context
dockerfile: 21.04/Dockerfile
target: stage-2
cache_from: [ test-ubuntu-21-04-stage-1:latest ]
# Ubuntu 21.04 with Perl, Apache, MariaDB and Perl modules installed
test-ubuntu-21-04-stage-3:
<<: *test-ubuntu-21-04
build:
context: *ubuntu-21-04-context
dockerfile: 21.04/Dockerfile
target: stage-3
cache_from: [ test-ubuntu-21-04-stage-2:latest ]