-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
31 lines (31 loc) · 950 Bytes
/
docker-compose.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
---
version: "3.8"
services:
test:
network_mode: "host"
container_name: "test"
hostname: "test"
environment:
SKIP_INTEGRATION_TESTS: "${SKIP_INTEGRATION_TESTS:-True}"
NORNIR_LOG: "${NORNIR_LOG:-False}"
build:
context: "."
target: "test"
volumes:
- "./:/usr/src/app"
clab:
image: "ghcr.io/srl-labs/clab"
working_dir: "/src"
network_mode: "host"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
- "/var/run/netns:/var/run/netns"
- "/etc/hosts:/etc/hosts"
- "./:/src"
pid: "host"
# command: "containerlab deploy -t ./clab-files/clab-topo-netconf.yml"
command: "containerlab deploy -t ./clab-files/clab-arista.yml --reconfigure"
# If you want to destroy the lab, ovveride the command while executing docker-compose service
# docker-compose run clab containerlab destroy -t clab-topo-netconf.yml
privileged: true
tty: true