-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
192 lines (178 loc) · 5.02 KB
/
docker-compose.yml
File metadata and controls
192 lines (178 loc) · 5.02 KB
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
# Test systems for verifying all supported package managers over SSH.
#
# Usage:
# docker compose up -d --build
#
# Credentials (all containers):
# User: testuser
# Password: testpass
#
# Connect from the dashboard using localhost and the mapped port:
# Ubuntu (APT) → localhost:2001
# Fedora (DNF) → localhost:2002
# CentOS7 (YUM) → localhost:2003
# Arch (Pacman) → localhost:2004
# Ubuntu (Flatpak) → localhost:2005
# Ubuntu (Snap) → localhost:2006
# Ubuntu (APT+sudo password) → localhost:2007
# Debian (APT+fish shell) → localhost:2008
# Debian (APT+fish shell+sudo password) → localhost:2009
# Alpine (APK) → localhost:2010
# Debian (APT kept-back fixture) → localhost:2011
# Ubuntu (APT works + Snap fails) → localhost:2012
# Fedora (DNF GPG key prompt fixture) → localhost:2013
# Fedora (DNF EULA prompt fixture) → localhost:2014
#
# SSH examples:
# ssh testuser@localhost -p 2001 # Ubuntu (APT)
# ssh testuser@localhost -p 2002 # Fedora (DNF)
# ssh testuser@localhost -p 2003 # CentOS7 (YUM)
# ssh testuser@localhost -p 2004 # Arch (Pacman)
# ssh testuser@localhost -p 2005 # Ubuntu (Flatpak)
# ssh testuser@localhost -p 2006 # Ubuntu (Snap)
# ssh testuser@localhost -p 2007 # Ubuntu (APT + sudo password)
# ssh testuser@localhost -p 2008 # Debian (APT + fish shell)
# ssh testuser@localhost -p 2009 # Debian (APT + fish shell + sudo password)
# ssh testuser@localhost -p 2010 # Alpine (APK)
# ssh testuser@localhost -p 2011 # Debian (APT kept-back fixture)
# ssh testuser@localhost -p 2012 # Ubuntu (APT works + Snap fails)
# ssh testuser@localhost -p 2013 # Fedora (DNF GPG key prompt fixture)
# ssh testuser@localhost -p 2014 # Fedora (DNF EULA prompt fixture)
#
# Note: Flatpak needs --privileged for bubblewrap (used during install/update).
# Snap needs systemd as PID 1 + --privileged for snapd to function.
services:
ubuntu:
build:
context: .
dockerfile: Dockerfile.ubuntu
container_name: ludash-test-ubuntu
hostname: ubuntu-test
ports:
- "2001:22"
restart: unless-stopped
fedora:
build:
context: .
dockerfile: Dockerfile.fedora
container_name: ludash-test-fedora
hostname: fedora-test
ports:
- "2002:22"
restart: unless-stopped
centos7:
build:
context: .
dockerfile: Dockerfile.centos7
container_name: ludash-test-centos7
hostname: centos7-test
ports:
- "2003:22"
restart: unless-stopped
archlinux:
build:
context: .
dockerfile: Dockerfile.archlinux
container_name: ludash-test-archlinux
hostname: archlinux-test
ports:
- "2004:22"
restart: unless-stopped
flatpak:
build:
context: .
dockerfile: Dockerfile.flatpak
container_name: ludash-test-flatpak
hostname: flatpak-test
privileged: true
ports:
- "2005:22"
restart: unless-stopped
snap:
build:
context: .
dockerfile: Dockerfile.snap
container_name: ludash-test-snap
hostname: snap-test
privileged: true
tmpfs:
- /tmp
- /run
- /run/lock
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
ports:
- "2006:22"
restart: unless-stopped
ubuntu-sudo:
build:
context: .
dockerfile: Dockerfile.ubuntu-sudo
container_name: ludash-test-ubuntu-sudo
hostname: ubuntu-sudo-test
ports:
- "2007:22"
restart: unless-stopped
debian-fish:
build:
context: .
dockerfile: Dockerfile.debian-fish
container_name: ludash-test-debian-fish
hostname: debian-fish-test
ports:
- "2008:22"
restart: unless-stopped
debian-fish-sudo:
build:
context: .
dockerfile: Dockerfile.debian-fish-sudo
container_name: ludash-test-debian-fish-sudo
hostname: debian-fish-sudo-test
ports:
- "2009:22"
restart: unless-stopped
alpine:
build:
context: .
dockerfile: Dockerfile.alpine
container_name: ludash-test-alpine
hostname: alpine-test
ports:
- "2010:22"
restart: unless-stopped
apt-keptback:
build:
context: .
dockerfile: Dockerfile.apt-keptback
container_name: ludash-test-apt-keptback
hostname: apt-keptback-test
ports:
- "2011:22"
restart: unless-stopped
apt-snap-partial:
build:
context: .
dockerfile: Dockerfile.apt-snap-partial
container_name: ludash-test-apt-snap-partial
hostname: apt-snap-partial-test
ports:
- "2012:22"
restart: unless-stopped
dnf-gpg-prompt:
build:
context: .
dockerfile: Dockerfile.dnf-gpg-prompt
container_name: ludash-test-dnf-gpg-prompt
hostname: dnf-gpg-prompt-test
ports:
- "2013:22"
restart: unless-stopped
dnf-eula-prompt:
build:
context: .
dockerfile: Dockerfile.dnf-eula-prompt
container_name: ludash-test-dnf-eula-prompt
hostname: dnf-eula-prompt-test
ports:
- "2014:22"
restart: unless-stopped