-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtestenv-compose.yml
More file actions
107 lines (101 loc) · 2.83 KB
/
testenv-compose.yml
File metadata and controls
107 lines (101 loc) · 2.83 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
##
## Copyright (c) 2023 The Johns Hopkins University Applied Physics
## Laboratory LLC.
##
## This file is part of the Asynchronous Network Management System (ANMS).
##
## 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.
##
## This work was performed for the Jet Propulsion Laboratory, California
## Institute of Technology, sponsored by the United States Government under
## the prime contract 80NM0018D0004 between the Caltech and NASA under
## subcontract 1658085.
##
# This configuration uses the environment variables:
# DOCKER_IMAGE_PREFIX to contain a (default empty) image registry and path to all custom images
# DOCKER_IMAGE_TAG to contain the image tag for custom images
#
name: testenv
networks:
testenv:
name: testenv
driver_opts:
com.docker.network.bridge.name: br-testenv
com.docker.network.driver.mtu: 65535
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1
volumes:
sockdir:
external: true
services:
ion-manager:
hostname: ion-manager
image: ${DOCKER_IMAGE_PREFIX}ion-manager:${DOCKER_IMAGE_TAG}
build:
dockerfile: testenv.Containerfile
target: ion-manager
depends_on: {}
privileged: true
tty: true
cap_add:
- NET_ADMIN
- NET_RAW
- SYS_NICE
volumes:
- "${HOST_SOCKDIR}:${CTR_SOCKDIR}"
environment:
container: docker
DTNMA_LOGLEVEL: debug
AMP_PROXY_SOCKET: "${CTR_SOCKDIR}/proxy.sock"
ION_NODE_NUM: 1
MGR_NODE_NUM: 1
ports:
- "1113:1113/udp"
- "4556:4556/udp"
networks:
testenv:
ipv4_address: 10.5.0.101
extra_hosts:
- ion-agent2:10.5.0.102
- ion-agent3:10.5.0.103
ion-agent2: &ion-agent
hostname: ion-agent2
image: ${DOCKER_IMAGE_PREFIX}ion-agent:${DOCKER_IMAGE_TAG}
build:
dockerfile: testenv.Containerfile
target: ion-agent
privileged: true
tty: true
cap_add:
- NET_ADMIN
- NET_RAW
- SYS_NICE
environment:
container: docker
DTNMA_LOGLEVEL: debug
ION_NODE_NUM: 2
MGR_NODE_NUM: 1
networks:
testenv:
ipv4_address: 10.5.0.102
ion-agent3:
<<: *ion-agent
hostname: ion-agent3
networks:
testenv:
ipv4_address: 10.5.0.103
environment:
container: docker
ION_NODE_NUM: 3
MGR_NODE_NUM: 1
DTNMA_LOGLEVEL: debug