blob: 810374527ca46638e0504c41c15e90451090ae29 (
plain)
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
|
services:
sut-0:
build:
context: "base/"
dockerfile: "Dockerfile"
args:
BASE_IMAGE: "ubuntu:24.04"
cap_add:
- NET_RAW
command: ["/usr/sbin/sshd","-D", "-p", "6001"]
expose:
- "6001"
hostname: "{{ ansible_hostname[:-1] }}1"
network_mode: "host"
privileged: true
restart: "always"
shm_size: "4G"
volumes:
{% for volume in docker_volumes %}
- type: "bind"
source: "{{ volume.source }}"
target: "{{ volume.target }}"
{% endfor %}
sut-1:
build:
context: "base/"
dockerfile: "Dockerfile"
args:
BASE_IMAGE: "ubuntu:24.04"
cap_add:
- NET_RAW
command: ["/usr/sbin/sshd","-D", "-p", "6002"]
expose:
- "6002"
hostname: "{{ ansible_hostname[:-1] }}2"
network_mode: "host"
privileged: true
restart: "always"
shm_size: "4G"
volumes:
{% for volume in docker_volumes %}
- type: "bind"
source: "{{ volume.source }}"
target: "{{ volume.target }}"
{% endfor %}
|