-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdocker-compose.dpu.yml
96 lines (87 loc) · 3.24 KB
/
docker-compose.dpu.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
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2022-2023 Dell Inc, or its subsidiaries.
---
version: '3.7'
services:
nmap:
image: docker.io/instrumentisto/nmap:7.94
networks:
- opi
command: --script broadcast-dhcp-discover
nmapmdnsclient:
image: docker.io/instrumentisto/nmap:7.94
networks:
- opi
command: --script=dns-service-discovery -p 5353 avahi
client:
image: docker.io/modularitycontainers/dhcp-client:latest
cap_add:
- CAP_NET_RAW
volumes:
- dhcp-leases-folder:/var/lib/dhclient/
- ./dhcp/dhclient.conf:/etc/dhcp/dhclient.conf
networks:
- opi
command: dhclient -d -v
agent3: &agent
image: ghcr.io/opiproject/opi-sztp-client:main
build:
context: sztp-agent
depends_on:
bootstrap:
condition: service_healthy
redirecter:
condition: service_healthy
setup-cert:
condition: service_completed_successfully
volumes:
- client-certs:/certs
- dhcp-leases-folder:/var/lib/dhclient/
- /etc/os-release:/etc/os-release
- /etc/ssh:/etc/ssh
- /var/lib/sztp:/var/lib/sztp
- /run/sztp:/run/sztp
privileged: true
networks:
- opi
command: ['/opi-sztp-agent', 'daemon',
'--dhcp-lease-file', '/var/lib/dhclient/dhclient.leases',
'--bootstrap-trust-anchor-cert', '/certs/opi.pem',
'--device-end-entity-cert', '/certs/third_my_cert.pem',
'--device-private-key', '/certs/third_private_key.pem',
'--serial-number', 'third-serial-number']
agent2:
<<: *agent
command: ['/opi-sztp-agent', 'daemon',
'--dhcp-lease-file', '/var/lib/dhclient/dhclient.leases',
'--bootstrap-trust-anchor-cert', '/certs/opi.pem',
'--device-end-entity-cert', '/certs/second_my_cert.pem',
'--device-private-key', '/certs/second_private_key.pem',
'--serial-number', 'second-serial-number']
agent1:
<<: *agent
command: ['/opi-sztp-agent', 'daemon',
'--dhcp-lease-file', '/var/lib/dhclient/dhclient.leases',
'--bootstrap-trust-anchor-cert', '/certs/opi.pem',
'--device-end-entity-cert', '/certs/first_my_cert.pem',
'--device-private-key', '/certs/first_private_key.pem',
'--serial-number', 'first-serial-number']
agent4:
<<: *agent
command: ['/opi-sztp-agent', 'daemon',
'--bootstrap-url', 'https://redirecter:8080/restconf/operations/ietf-sztp-bootstrap-server:get-bootstrapping-data',
'--bootstrap-trust-anchor-cert', '/certs/opi.pem',
'--device-end-entity-cert', '/certs/first_my_cert.pem',
'--device-private-key', '/certs/first_private_key.pem',
'--serial-number', 'first-serial-number']
agent5:
<<: *agent
command: ['/opi-sztp-agent', 'run',
'--dhcp-lease-file', '/var/lib/dhclient/dhclient.leases',
'--bootstrap-trust-anchor-cert', '/certs/opi.pem',
'--device-end-entity-cert', '/certs/first_my_cert.pem',
'--device-private-key', '/certs/first_private_key.pem',
'--serial-number', 'first-serial-number']
volumes:
client-certs:
dhcp-leases-folder: