-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
75 lines (68 loc) · 2.36 KB
/
docker-compose.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
65
66
67
68
69
70
71
72
73
74
75
# Copyright 2020 Broadband Forum
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: '3'
services:
# can use this with default options from the host
cterm:
image: 'broadbandforum/obbaa-onu-simulator:latest'
stdin_open: true
tty: true
ports:
- '12345:12345/udp'
command: onusim.py -l 1 -n cterm -i 1 -I 100
# can use this with the options in Igor's example
cterm1:
image: 'broadbandforum/obbaa-onu-simulator:latest'
stdin_open: true
tty: true
ports:
- '50001:50000/udp'
command: onusim.py -l 2 -p 50000 -n channeltermination.1 -i 1 -I 100
# can use this with the options in Igor's example (but different chan term)
cterm2:
image: 'broadbandforum/obbaa-onu-simulator:latest'
stdin_open: true
tty: true
ports:
- '50002:50000/udp'
command: onusim.py -l 2 -p 50000 -n channeltermination.2 -i 1 -I 100
polt:
depends_on:
- cterm1
image: 'broadbandforum/obbaa-polt-simulator:latest'
volumes:
- '$APPROOT:/app'
ports:
- '8433:8433/tcp'
stdin_open: true
tty: true
working_dir: /opt/obbaa-polt-simulator/build/fs
# XXX using modified script; edits polt.cli -> polt.cli.tmp
command: >
bash -c "cp -f /app/share/start_tr451_polt.sh . &&
./start_tr451_polt.sh gdb run -log debug -f /app/share/polt.cli.tmp -d"
vomci:
depends_on:
- polt
image: 'broadbandforum/obbaa-polt-simulator:latest'
volumes:
- '$APPROOT:/app'
stdin_open: true
tty: true
working_dir: /opt/obbaa-polt-simulator/build/fs
command: ./start_tr451_polt.sh -log debug -f /app/share/vomci.cli -d
# after docker-compose up, do docker-compose ps to determine the vomci
# container name (probably onusim_vomci_1) and then do docker attach <name>;
# can then enter interactive commands
# beware that ^C will terminate the container so do ^P^Q to detach